inbo / iassetR

Interact with the iAsset api using R
https://inbo.github.io/iassetR/
Other
0 stars 1 forks source link

Better column classes for output of `get_records()` #17

Open PietrH opened 9 months ago

PietrH commented 9 months ago

Currently the tibble that get_records() returns has character columns for everything except list columns, we have column type information from get_fields(), we could translate these into R equivalents and do some parsing/mapping to make the output a lot more user friendly.

For example: toestemming_gegevensgebruik == "on" might make more sense as toestemming_gegevensgebruik == TRUE, we could use date and time fields for datum_tijd_registratie and datum_observatie to save users on having to to these conversions themselves.