R语言学习-问题解决-Error in output$nodeID : $ operator is invalid for atomic vectors
2017-07-19 10:46
4039 查看
问题:在使用"$"符查看变量列的时候,报错Error in output$nodeID : $ operator is invalid for atomic vectors
output <- data$score
output <- cbind(nodeID=dat$nodeID,score=output)
head(output$nodeID)
Error in output$nodeID : $ operator is invalid for atomic vectors
#查看output的类型,发现是matrix
class(output)
[1] "matrix"
#"data.frame"才能用“$”,这里改用[,]操作就行
head(output[,1])
output <- data$score
output <- cbind(nodeID=dat$nodeID,score=output)
head(output$nodeID)
Error in output$nodeID : $ operator is invalid for atomic vectors
#查看output的类型,发现是matrix
class(output)
[1] "matrix"
#"data.frame"才能用“$”,这里改用[,]操作就行
head(output[,1])
相关文章推荐
- R语言学习-问题解决-Error in `[<-.ts`(`*tmp*`,...only replacement of elements is allowed
- There is no getter for property named 'id' in 'class java.lang.Integer'问题解决办法
- R语言学习笔记-Error in ts(x):对象不是矩阵问题解决
- R语言学习笔记-Error in ts(x):对象不是矩阵问题解决
- 解决 js报错:Uncaught TypeError- Cannot use 'in' operator to search for 'length' in [{"id":"636","...
- CodeSign error: code signing is required for product type Application in SDK iOS XXX的解决办法
- iOS iOS8中 问题"registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later" 解决方式
- (error) LOADING Redis is loading the dataset in memory问题解决
- mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.Long'
- 【解决】")syntax error: invalid arithmetic operator (error token is "
- ElasticSearch学习问题记录——Invalid shift value in prefixCoded bytes (is encoded value really an INT?)
- Android-Android studio 出现 Error: NDK integration is deprecated in the current plugin. 问题解决
- phpcms2008 信息管理 Warning: Invalid argument supplied for foreach() in 问题的解决方法
- Linux学习30_configure: error: no acceptable C compiler found in $PATH 问题解决
- Missing iOS Distribution signing identity for...的问题 或者 ERROR ITMS-90034: "Missing or invalid signature. 问题解决方法
- mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.String'
- CodeSign error: code signing is required for product type Application in SDK iOS解决办法
- 解决Name node is in safe mode的问题
- mybatis加Spring项目: 解决There is no getter for property named '***' in 'class java.lang.String'问题
- iOS app 打包上传 问题 ERROR-ITMS 90060(the bundle is invalid .the value for ker CFBundleShortVersionStrin)