I am trying to use the bigmemory package in R and I am stuck at the very beginning. I:
temp <- matrix(paste("a",1:10), 5, 2)
and get the character matrix. This is normal. But then I try:
x <- as.big.matrix(temp, type="char")
and I get a matrix full NA and the following message:
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) :
I'm not sure what is going on, but big.matrix looks trying to convert all my texts into numbers, despite type = "char" . How to make it work?
matrix r character r-bigmemory
user1890450
source share