R - 在表中输出“错误”的值

时间:2017-12-11 10:35:35

标签: r

我使用以下内容:

     analysis <- matrix(c(median(avitM), mean(avitM), var(avitM), sd(avitM), median(logavitM), mean(logavitM), var(logavitM), sd(logavitM)),ncol=4,byrow=TRUE)


     analysis <- matrix(c(sum(median(avitM)), mean(avitM), var(avitM), sd(avitM), median(logavitM), mean(logavitM), var(logavitM), sd(logavitM)),ncol=4,byrow=TRUE)

colnames(analysis) <- c("Median","Gennemsnit","Stikproevevarians","Stikproevespredning")
rownames(analysis) <- c("avitM","logavitM")
analysis <- as.table(analysis)
analysis

要在矩阵中获取以下值:

    Median   Gennemsnit Stikproevevarians Stikproevespredning
avitM    1.782350e+03 1.958979e+03      8.294475e+05        9.107401e+02
logavitM 7.485688e+00 7.484993e+00      1.916541e-01        4.377832e-01

您看到的值有点奇怪。有没有办法表达它们不是用e而是用整数?

1 个答案:

答案 0 :(得分:0)

options(scipen = 1000)允许您更改它。