'names' attribute must be the same length as the vector

前端 未结 6 1923
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 19:00

Stuck on an error in R.

    Error in names(x) <- value : 
      \'names\' attribute must be the same length as the vector

What does thi

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 19:42

    The mistake I made that coerced this error was attempting to rename a column in a loop that I was no longer selecting in my SQL. This could also be caused by trying to do the same thing in a column that you were planning to select. Make sure the column that you are trying to change actually exists.

提交回复
热议问题