Issue when importing dataset: `Error in scan(…): line 1 did not have 145 elements`

后端 未结 11 1258
我在风中等你
我在风中等你 2020-11-28 22:14

I\'m trying to import my dataset in R using read.table():

Dataset.df <- read.table(\"C:\\\\dataset.txt\", header=TRUE)

But

11条回答
  •  旧时难觅i
    2020-11-28 22:14

    This simple method solved the problem for me: Copy the content of your dataset, open an empty Excel sheet, choose "Paste Special" -> "Values", and save. Import the new file instead.

    (I tried all the existing solutions, and none worked for me. My old dataset appeared to have no missing values, space, special characters, or embedded formulas.)

提交回复
热议问题