मैं bigmemory
पैकेज R में उपयोग करने का प्रयास करता हूं और मैं बहुत शुरुआत में फंस गया हूं। मैं करता हूं:आर :: bigmemory - कैसे चरित्र big.matrix बनाने के लिए?
temp <- matrix(paste("a",1:10), 5, 2)
और एक चरित्र मैट्रिक्स प्राप्त करें। ठीक है। लेकिन तब मैं कोशिश:
x <- as.big.matrix(temp, type="char")
और मैं एक मैट्रिक्स एनए से भरा और निम्न संदेश मिलता है:
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) :
मुझे यकीन है कि क्या हो रहा है नहीं कर रहा हूँ लेकिन यह सब कन्वर्ट करने के लिए कोशिश करता है big.matrix लग रहा है 0xके बावजूद मेरे ग्रंथ संख्याओं में हैं। इसे कार्यशील कैसे करें?
बहुत बहुत शुक्रिया। अब मैं समझ गया। – user1890450