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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -