I'm trying to load a csv file that has symbol '#' in the header. This is causing an error message 'More Columns than Column Names'. I've followed some the articles (here & here), but I can not manage to sort it out.
The problem seems to be that the upload excludes columns after the #. For example, I've created a file with the following column headers (no rows)
A B# C # D
When I upload I get the following:
hTest <- read.table("C:/Users/xxx/headerTest.csv",header=T, sep = ',',check.names=FALSE)
hTest
[1] A B
<0 rows> (or 0-length row.names)
As you can see, after the # in column B the following columns are ignored
Any ideas on how to resolve the problem?
Thanks