'Embedded nul in string' error when importing csv with fread

后端 未结 6 1228
[愿得一人]
[愿得一人] 2020-11-29 08:56

I have a large file (3.5G) that I\'m trying to import using data.table::fread.

It was originally created from an rpt file that was opened as text and sa

6条回答
  •  广开言路
    2020-11-29 09:49

    I ran into a similar error, sharing in case others run into the same issue -

      embedded nul in string: '\0HA\xa8S\001\0\0\0\xd8@\xa8S\001\0\0\0h@\xa8S\001\0\0\0\xf8?\xa8S\001\0\0\0\x88'
    Calls: as.data.table -> fread
    

    The cause of this ended up being different column lengths where my first column (headers) were shorter than the rest.

提交回复
热议问题