为什么在将 csv 导入 r 时,'ï..' 在第一个 colname 的前面?
Why is 'ï..' at the front of the first colname when imported a csv into r?
为什么将 csv 导入 r 时,'ï..' 位于第一个 colname 的前面?
每当我通过 excel 保存了一个 csv,然后在 r 中执行 read.csv() 时,就会发生这种情况。是什么导致了这种行为?
输出:
结构(列表(·..物种= c(1L,2L,3L,4L,5L,6L,7L,8L,
9L, 1L, 2L, 4L, 5L, 6L, 7L, 1L, 3L, 1L, 2L, 2L, 4L, 4L, 3L, 2L,
5L, 4L, 7L, 2L, 2L), Country = c(1L, 1L, 1L, 1L, 2L, 2L, 3L,
4L, 5L, 6L, 1L, 3L, 2L, 1L, 2L, 5L, 4L, 4L, 2L, 3L, 3L, 5L, 4L,
5L, 5L, 3L, 7L, 4L, 5L)), class = "data.frame", row.names = c(NA,
-29L))
请在此处查看之前关于从 Excel 导入数据时出现奇怪字符的回答:Weird characters added to first column name after reading a toad-exported csv file
为什么将 csv 导入 r 时,'ï..' 位于第一个 colname 的前面?
每当我通过 excel 保存了一个 csv,然后在 r 中执行 read.csv() 时,就会发生这种情况。是什么导致了这种行为?
输出:
结构(列表(·..物种= c(1L,2L,3L,4L,5L,6L,7L,8L, 9L, 1L, 2L, 4L, 5L, 6L, 7L, 1L, 3L, 1L, 2L, 2L, 4L, 4L, 3L, 2L, 5L, 4L, 7L, 2L, 2L), Country = c(1L, 1L, 1L, 1L, 2L, 2L, 3L, 4L, 5L, 6L, 1L, 3L, 2L, 1L, 2L, 5L, 4L, 4L, 2L, 3L, 3L, 5L, 4L, 5L, 5L, 3L, 7L, 4L, 5L)), class = "data.frame", row.names = c(NA, -29L))
请在此处查看之前关于从 Excel 导入数据时出现奇怪字符的回答:Weird characters added to first column name after reading a toad-exported csv file