R: Import CSV with column names that contain spaces

后端 未结 3 2207
迷失自我
迷失自我 2020-12-08 15:42

CSV file looks like this (modified for brevity). Several columns have spaces in their title and R can\'t seem to distinguish them.

Alias;Type;SerialNo;DateTime;Ma         


        
3条回答
  •  感情败类
    2020-12-08 16:28

    I believe spaces get replaced by dots "." when importing CSV files. So you'd write e.g. Main.status. You can check by entering names(s_data) to see what the names are.

提交回复
热议问题