Closed mps9506 closed 3 years ago
Thanks for the report @mps9506 !
Definitely should be fixed, results should be consistent types regardless of the data retrieved.
the source
column should be character - see https://www1.ncdc.noaa.gov/pub/data/ish/ish-format-document.pdf It can be a number of a letter, so we shouldn't coerce to numeric/integer
reinstall to get the fix, let me know.
there's a lot of columns in the returned data. I've made a fix just for the source column, but there are likely others where they could sometimes be coerced to numeric/integer instead of what they should be (character), that's what happened in this case because the data can be a letter, so should always be character. if you or anyone else wants to help sort out what class columns should be that would be a great contribution
Thanks @sckott, the fix looks fairly straight forward, just slightly tedious. I'll work on a pull request to sort that out over the next few weeks.
Thanks!
Hi, Thanks for the great package... I'm running into a minor issue where
lcd()
sometimes returns a character column and sometimes returns a numeric column. Reprex below:In the
echor
package which downloads various EPA environmental permit data, we ended up defining all the column classes as character when reading in the downloaded csv/json files to facilitate bulk data downloading (which is essentially what I'm usingrnoaa
for). I recognize that might not be a desired solution so completely understand if this issue is closed as is.Session Info