The column name changes after importing the data into R

Viewed 182

The first column in my data below is called ID. But I wonder why when I import my data into R, the first column names is shown as ï..ID?

How can can keep ID to be the column name?

d <- read.csv("https://raw.githubusercontent.com/rnorouzian/v/main/memory.csv")

names(d)

# [1] "ï..ID" "Group" "MP"    "SE"
1 Answers

We can specify check.names = FALSE in case there are some characters that are unusual

d <- read.csv("https://raw.githubusercontent.com/rnorouzian/v/main/memory.csv", check.names = FALSE)

names(d)
#[1] "ID"    "Group" "MP"    "SE"   
Related