How do you delete the header in a dataframe?

前端 未结 7 657
故里飘歌
故里飘歌 2021-01-04 19:40

I want to delete the header from a dataframe that I have. I read in the data from a csv file then I transposed it, but it created a new header that is the name of the file a

7条回答
  •  情歌与酒
    2021-01-04 20:16

    Set names to NULL

    names(df) <- NULL
    

    You can also use the header option in read.csv

提交回复
热议问题