Problem: Error in output$nodeID: $operator is invalid for atomic Vectors when viewing variable columns using the “$” operator
output <- data$score
output <- cbind(nodeID=dat$nodeID,score=output)
head(output$nodeID)
Error in output$nodeID : $ operator is invalid for atomic vectors
# Check the type of output and find out it's matrix.
class(output)
[1] "matrix"
#"data.frame" can only be used with "$", just use [,] here.
head(output[,1])
Read More:
- Numpy.exp Function Error ‘Float’ object has no attribute ‘exp’
- target is multiclass but average=’binary’. please choose another average setting.
- MacOS Mojave uses SMB LAN share as backup disk of timemachine time machine. Disk does not support time machine backups. (error 45)
- C++ BUG: [Error] invalid array assignment
- runtime error ‘9’: subscript out of range error in VBA programming
- Angularjs1 exception error:[$injector:unpr]
- A mistake about implicitly providing default constructors
- How to Solve Error: cannot open .Git/fetch_HEAD: Permission denied
- RuntimeError: ONNX export failed: Couldn‘t export operator aten::upsample_bilinear2d
- How to Solve Error Swift 4 Expression type ‘@value CGRect’ is ambiguous without more context
- Vue error in render: “typeerror: cannot read property ‘length’ of undefined”
- How to parse JSON string in.Net [error reading job object from jsonreader. Current jsonreader item is not an obj]
- NVM ERROR open \settings.txt: The system cannot find the file specified
- Error configuring application listener of class jdbc.ContextListener [One of the solutions]
- C++ new types may not be defined in a return type Error?
- Error (active) e1696 cannot open source file “errno.H” rpgworld problems encountered in installing visual studio 2017
- Spark-SQL Error: A JNI error has occurred, please check your installation and try again Exceptio
- AUC Error – ValueError: Data is not binary and pos_label is not specified
- How to Fix Common Arcpy Error
- QT solves error: use of deleted function and is private within this context