Rachit Agrawal Rachit Agrawal - 1 year ago 89
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 Source

according to @Joshua

read.csv("filename.csv",check.names=FALSE)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download