在某些情况下,R软件会故意省略一些带有"...“的结果签名。例如,如果某人正在使用qcc包R绘制x条形图或R图,则R仅显示前几个样本均值,并显示"...“签名。有没有办法查看完整的输出?
示例:
#R code is stated below
library(qcc)
data = matrix(c(32, 28, 39, 50, 42, 50, 44, 22, 37, 32, 52, 42, 45,
29, 52, 35, 42, 40, 28, 31, 34, 21, 35, 44), 8, 3, byrow=TRUE)
qcc(data, type="xbar")
# if we run it then the output will be displayed as below
List of 11
$ call : language qcc(data = data͵ type = "xbar")
$ type : chr "xbar"
$ data.name : chr "data"
$ data : num [1:8, 1:3] 32 28 39 50 . . .
$ statistics : Named num [1:8] 37 33.3 39.7 41 . . .如果没有"...“,我如何查看完整的输出?征兆?
发布于 2015-03-17 00:49:07
您需要保存对qcc的调用结果。然后你会注意到结果是qcc类的。qcc对象的打印方法print.qcc实际上调用了str,它负责缩短结果。你可以用unclass来显示整个结果。
res <- qcc(data, type="xbar")
unclass(res)https://stackoverflow.com/questions/29082093
复制相似问题