r - Get "embedded nul(s) found in input" when reading a csv using read.csv() -
I was reading in a CSV file.
The code is:
mydata = read.csv ("mycsv.csv", header = true, sep = ",", quotation = "\" ") Get the following warning:
Warning message: found in the input scan (file = file, what = what, Sep = SEP, quote = Quote, dec = dec ): embedded faucet (s) / P> Now the values represented by "" in some cells in my CSV are remembered. < P> How do I write this code, so that I can not get the above warning? It can be encoded in TF-16. It is not unusual when working with some Windows windows.
You can try to load a UTF-16 CSV like this:
read.csv ("mycsv.csv", ..., fileEncoding = "UTF-16LE")
Comments
Post a Comment