2
我正在使用read.big.matrix
读取维数为3131875 * 5的数据。我的数据包含字符和数字列,包括日期变量。这是我应该使用的命令是读取R中的大数据by 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
这样的选项,但那是抛出我相同的错误。
请帮帮我。
@ user1702490,这可能不是你得到错误信息的原因。你能从你的数据创建一个非文件支持的'big.matrix'吗? – BenBarnes