We can remove the null terminators on the command line using something like:
sed 's/\\0//g' mycsv.csv > mycsv.csv
Or as suggested by @marbel, fread allows you to pass the sed call inside the text. Such as:
fread("sed 's/\\0//g' mycsv.csv")
More Related Contents:
- Reason behind speed of fread in data.table package in R
- Is there a dplyr equivalent to data.table::rleid?
- Assign multiple columns using := in data.table, by group
- Efficient way to rbind data.frames with different columns
- How to replace NA values in a table for selected columns
- data.table “key indices” or “group counter”
- Select subset of columns in data.table R [duplicate]
- R: data.table cross-join not working
- Why is allow.cartesian required at times when when joining data.tables with duplicate keys?
- Dynamically build call for lookup multiple columns
- Select values from different columns based on a variable containing column names [duplicate]
- eval and quote in data.table
- Efficiently computing a linear combination of data.table columns
- When should I use the := operator in data.table?
- Subsetting data.table by 2nd column only of a 2 column key, using binary search not vector scan
- Using dynamic column names in `data.table`
- Conditional binary join and update by reference using the data.table package
- How do you delete a column by name in data.table?
- How does one change the levels of a factor column in a data.table
- When should I use setDT() instead of data.table() to create a data.table?
- DT[!(x == .)] and DT[x != .] treat NA in x inconsistently
- In R data.table, how do I pass variable parameters to an expression?
- Merging two sets of data by data.table roll=’nearest’ function
- Using data.table i and j arguments in functions
- R data.table breaks in exported functions
- Applying a function to each row of a data.table
- Empty factors in “by” data.table
- How to use data.table within functions and loops?
- What you can do with a data.frame that you can’t with a data.table?
- data.table: anonymous function in j