I have created a data matrix from a CSV file In R. But whenever I try saving the data matrix in .RData format or CSV format and reload it again, the "is.numeric(data_matrix) returns FALSE. the argument returned TRUE before saving in CSV or RData format.

The commands i tried for saving are:

write.csv(data_matrix, file = "matrix.csv") #not numeric

write.csv(data_matrix, "data.csv", row.names = FALSE, col.names = FALSE) #matrix numeric but column names changed to 1,2,3,4.....

write.csv(data_matrix, "data.csv", row.names = TRUE) #not_numeric

The commands used for reloading are:

data

More Debashruti Das's questions See All
Similar questions and discussions