This is a BOM (Byte Order Mark) UTF-8 issue.
To prevent this from happening, 2 options:
- Save your file as UTF-8 without BOM / signature -- or --
- Use
fileEncoding = "UTF-8-BOM"
when using read.table
or read.csv
Example:
mydata <- read.table(file = "myfile.txt", fileEncoding = "UTF-8-BOM")