coderaanalytics / econdatar

R package for uploading and downloading data to/from www.econdata.co.za
MIT License
6 stars 2 forks source link

Upgrading to version 3 #23

Open aidanhorn opened 6 months ago

aidanhorn commented 6 months ago

The purpose of this issue is to document what changes will be made to codebases when upgrading from version 2 of econdatar to version 3.

Column names in long data

Old name New name
data_key series_key
period time_period
value obs_value

When using Find & Replace, please use the regex value(?!s) to avoid replacing values_from inside pivot_wider(), or values in scale_color_manual() or scale_fill_manual().

aidanhorn commented 6 months ago

The metadata item when the data are returned in a long (relational) format is now a list. The analyst should thus enclose the metadata item in as_tibble() in order to achieve the same tabular format as before.