Sequentially Rename 100+ Columns Having Idiosyncratic Names

前端 未结 1 1513
时光取名叫无心
时光取名叫无心 2020-12-12 01:07

I have a large data frame imported from a Google Forms survey with very long column names (basically, the column names are the survey questions themselves).

So, my i

相关标签:
1条回答
  • 2020-12-12 01:46

    Use the colnames function:

    colnames(d) <- paste0("Q",1:ncol(d))
    
    0 讨论(0)
提交回复
热议问题