Read.table while using '#' as delimiter does not work?

前端 未结 1 1972
情话喂你
情话喂你 2021-01-13 23:23

I have a data file with the # sign as delimiter, that I would like to read with the read.file command.

First of all; it\'s a big data file

1条回答
  •  我在风中等你
    2021-01-13 23:50

    The comment character is also #, so you need something like:

    read.table(file='tmp.txt', check.names=FALSE, sep='#', 
              header=TRUE, comment.char="@")
    

    0 讨论(0)
提交回复
热议问题