我正在使用R读取尺寸3131875 * 5的数据read.big.matrix
。 我的数据同时包含字符和数字列,包括日期变量。 这是我应该使用的命令是
as1 <- read.big.matrix("C:/Documents and Settings/Arundhati.Mukherjee/My Documents/Arundhati/big data/MB07_Arundhati/sample2.txt",
header=TRUE,
backingfile="session.bin",
descriptorfile="session.desc",
type = NA)
但是, type = NA
不是R中接受在这种情况下,我得到一个错误:
Error in filebacked.big.matrix(nrow = nrow, ncol = ncol, type = type, :
Problem creating filebacked matrix.
In addition: Warning messages:
1: In na.omit(as.integer(firstLineVals)) : NAs introduced by coercion
2: In na.omit(as.double(firstLineVals)) : NAs introduced by coercion
3: In read.big.matrix("C:/Documents and Settings/Arundhati.Mukherjee/My Documents/Arundhati/big data/MB07_Arundhati/sample2.txt", :
Because type was not specified, we chose double based on the first line of data.
我需要知道应该是什么type
这里。 我试图用类似的选项double
但这抛出我同样的错误。
请帮我。