I'm attempting to read a .txt file with tab-delimited values. The first row are column names followed by the data set. An example of a column name would be: "HSC 1998 M&E-G".
When R reads the .txt file with the command: Demo <- read.table(demo.txt, header=TRUE, sep="\t")
The result is a column headers that have lost their special characters ( ,&,-): "HSC.1998.M.E.G"
How do I retain the space/dash/ampersand in the column name when I read the text file?