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:
- CIBERSOFT $operator is invalid for atomic vectors [How to Solve]
- [Solved] R Language Error: Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error)
- [Solved] throw new Error(“‘output.filename’ is required, either in config file or as –output-filename”);
- [Solved] R Language Error: Discrete value supplied to continuous scale
- R Language Error: variable does not have limits defined by datadist
- [Solved] This is probably not a problem with npm. There is likely additional logging output above.
- [Solved] R Language Error: Error in file(out, “wt“) : cannot open the connection
- R language Use setwd() function Error [How to Solve]
- [Solved] error: invalid operands of types ‘const char [6]‘ and ‘const char [6]‘ to binary ‘operator+‘
- R Language: How to Solve featureplot function Error
- [Solved] R Language Error: duplicate ‘row.names’ are not allowed
- R language: How to Solve DMwR Install Error
- Implement base64_decode in GO language to solve the problem of illegal characters
- RuntimeError: Exporting the operator uniform to ONNX opset version 12 is not supported.
- Stata Comment // Error / invalid name r(198); [How to Solve]
- [Solved] matlab Error: Error in port widths or dimensions. ‘Output Port 1‘ of ‘sl_arm_ibvs/camera‘
- Android r compiles OTA times error: ExternalError: Invalid ro.product.property_source_order
- [Solved] Qt Vtk wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid.
- [Solved] MindSpore Error: StridedSlice operator does not support input of uint8 data type on Ascend hardware
- C Language error: two or more data types in declaration specifiers