R changes column name when importing data

Hi!

I have been uploading datasets with the command

my_data <- read.csv2("my_data.csv")

However, when I upload my files the first column name changes from it's original name - let's say from the original name "sample" to "ï..sample". I can't see that anything should be wrong with the formating of my original file. There are no numbers in my column names, just text.
It happens with my csv files (not excel), and it's only the name of my first column that changes. Anyone here have an explanation?

Thanks!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.