peekbank / peekbankr

The package to access the data in peekbank from R
3 stars 1 forks source link

Perform unpack_aux_data in data retrieval functions #8

Closed adriansteffan closed 2 months ago

adriansteffan commented 5 months ago

The unpack_aux_data function creates nested R lists from the json objects placed in the *_aux_data columns. Since end users shouldn't need to deal with unpacking the json themselves, we should call this function before returning the data to the consumers of the peekbankr package.

I will have to check out the exact format returned by the database before implementing this.

adriansteffan commented 2 months ago

nevermind, this makes the data structures more complex by default even if people don't want to use the cdi data for their specific analysis - I will add usage information for unnest cdi data to the documentation