MattCowgill / readabs

Download and tidy time series data from the Australian Bureau of Statistics in R
https://mattcowgill.github.io/readabs/
Other
101 stars 22 forks source link

Remove coerce to numeric from read_api #250

Closed kletts closed 4 months ago

kletts commented 4 months ago

Hi Matt, Here's a pull request to update the code to address the issue #249. I found that the source of the coercion was actually upstream in the initial read of the CSV in which the R function read.csv when column classes are not specific defaults to guessing. Having adjusted the import of the CSV as character, the labelling function now attempts to coerce only the non-code columns as discussed in the issue. Christian

MattCowgill commented 4 months ago

Closes https://github.com/MattCowgill/readabs/issues/249

MattCowgill commented 4 months ago

Thanks so much @kletts