chrisvwn / Rnightlights

R package to extract data from satellite nightlights.
GNU General Public License v3.0
47 stars 14 forks source link

Warning on improper quoting #14

Open fnarita opened 6 years ago

fnarita commented 6 years ago

Hi Chris,

I sometimes observe the following warning at the end:

Warning messages: In data.table::fread(input = ctryStructFnamePath) : Found and resolved improper quoting out-of-sample. First healed line 241: <<"BOL","Potosí","José María Linares","Caiza \"D\"",1299.43179663157>>. If the fields are not quoted (e.g. field separator does not appear within any field), try quote="" to avoid this warning.

My code is just as follows, for example:

ctry <- "BOL" highestAdmLevelStats <- getCtryNlData(ctryCode = ctry, admLevel = "country", nlType = "VIIRS.Y", nlPeriods = nlRange("2015", "2016"), nlStats = "sum", ignoreMissing=FALSE)

This is a case of Bolivia, but there are more countries that I got this warning.

Is this a matter of concern?

Futoshi

chrisvwn commented 6 years ago

Hi Futoshi,

Thanks for opening this issue. It seems we are not handling quotes in names well. For now this is not an issue unless you need to join data based on name where the quotes in the name might cause mismatches. Let me look into this.

Regards, Chris

fnarita commented 6 years ago

Thank you very much Chris for your timely and helpful support, as always!

I'm glad to hear that this is not an issue in my case, where I do not join data based on the name of locations.

Thank you very much! Futoshi