I was reading in a csv file.
Code is:
mydata = read.csv("mycsv.csv", header=True, sep=",", quote="\"")
Get the following warning:
Warning message: In
scan(file = file, what = what, sep = sep, quote = quote, dec = dec
, : embedded nul(s) found in input
Now some cells in my CSV have missing values that are represented by "".
How do I write this code so that I do not get the above warning?
tr -d '\000' < filein > fileout
will remove the nulls, but that might not fully fix your issue. – Commencement