Using R to parse out Surveymonkey csv files

后端 未结 7 1164
说谎
说谎 2021-02-05 12:01

I\'m trying to analyse a large survey created with surveymonkey which has hundreds of columns in the CSV file and the output format is difficult to use as the headers run over t

7条回答
  •  死守一世寂寞
    2021-02-05 12:51

    How about the following: use read.csv() with header=FALSE. Make two arrays, one with the two lines of headings and one with the answers to the survey. Then paste() the two rows/sentences of together. Finally, use colnames().

提交回复
热议问题