Duplicate 'row.names' error reading table. row.names=NULL shifts columns

前端 未结 5 1954
逝去的感伤
逝去的感伤 2020-12-31 20:11

This is similar to read.csv row.names and to https://stackoverflow.com/questions/12425599/duplicated-row-names , but I do not see answers that help.

Problem: Trying

5条回答
  •  迷失自我
    2020-12-31 21:04

    had the same problem. just added this line:

    colnames(rec) <- c(colnames(rec)[-1],"x")
    rec$x <- NULL
    

提交回复
热议问题