Rachit Agrawal Rachit Agrawal - 1 month ago 6
R Question

R: read.csv adding sub-script "X" in header

I have a data frame that has headers as this

Name 0x1 1x2


read.csv changes the header to be

Name X0x1 X1x2


Is there a way, where this can be avoided?

Thanks.

Answer

according to @Joshua

read.csv("filename.csv",check.names=FALSE)
Comments