私はRbigmemory
でパッケージを使おうとしていますが、最初から立ち往生しています。そうです:
temp <- matrix(paste("a",1:10), 5, 2)
文字行列を取得します。それで大丈夫です。しかし、私は試してみます:
x <- as.big.matrix(temp, type="char")
NAでいっぱいのマトリックスと次のメッセージが表示されます。
Assignment will down cast from double to char
Hint: To remove this warning type: options(bigmemory.typecast.warning=FALSE)
Warning messages:
1: In as.big.matrix(temp, type = "char") : Casting to numeric type
2: In matrix(as.numeric(x), nrow = nrow(x), dimnames = dimnames(x)) :
NAs introduced by coercion
3: In SetElements.bm(x, i, j, value) :
何が起こっているのかわかりませんが、大きく見えます。matrixは、にもかかわらず、すべてのテキストを数値に変換しようとしますtype = "char"
。それを機能させる方法は?