Próbuję użyć pakietu bigmemory
w R i utknąłem na samym początku. Mam:R :: bigmemory - jak stworzyć postać big.matrix?
temp <- matrix(paste("a",1:10), 5, 2)
i otrzymam matrycę znaków. W porządku. Ale potem spróbować:
x <- as.big.matrix(temp, type="char")
i uzyskać pełną matrycę Na i następujący komunikat:
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) :
Nie jestem pewien, co się dzieje, ale wygląda big.matrix próbuje przekonwertować wszystkie moje teksty w liczbach pomimo type = "char"
. Jak to działa?
Dziękuję bardzo. Teraz rozumiem. – user1890450