Tag Archives: # R language

R language error messages and related solutions

Original: Huang Xiaoxian
Error: object of type ‘closure’ is not subsettable
object is not subsettable, see if the object is empty, sometimes the file path or name is wrong, data is not imported successfully
Remove duplicates before running TSNE
there can be duplicate data lines. There is a parameter in the package Rtsne, check_duplicates = FALSE
Error in colMeans(x, na.rm = TRUE) : ‘x’ must be numeric
. The data imported by that numeric contains columns that are not numeric, which may be factors.
can be checked using sapply (x, class)
Error: (list) object cannot be coerced into type ‘double’
. If using as.matrix cannot convert columns whose type is factor to numeric,
can use lapply(x,as.numeric) to convert the factor type to numeric
Error in install. Packages: cannot remove prior installation of package ‘digest’
can directly delete the corresponding package in the folder stored in R package
Error in df$type: $ operator is invalid for atomic vectors
The $method element

Error in file(file, ifelse(append, “a”, “w”)) :