Here's the problem that I have.
In my data
, order
column has the string values. It includes "01". But, when I read csv file, "01" becomes "1". How to maintain the original datafrmae when I read csv file? Here's my example:
data <- data.frame(a = c(1, 2, 3, 4, 5),
b = c(3, 4, 2, 7, 8),
order = c("10", "01", "101", "01", "10"),
f = c(1, 2, 3, 4, 5),
e = c(8, 9, 10, 11, 12))
write.csv(data,"E:/data.csv",row.names=FALSE)
data<-read.csv("E:/data.csv")