mnpopcenter / ipumsr

Read IPUMS data into R.
http://tech.popdata.org/ipumsr
Mozilla Public License 2.0
89 stars 8 forks source link

Extract to json update #73

Closed renae-r closed 2 years ago

renae-r commented 2 years ago

I updated the functions that save an extract to a json file and define an extract from a json file to include the necessary API endpoint information to be able to re-create and submit an extract from a json file. The benefits of this are:

  1. An extract defined from a json file can now be submitted as-is with extract <- define_extract_from_json("extract.json") submitted_extract <- submit_extract(extract)
  2. The extract definition json is now inline with what is written and expected by ipumspy, making it possible to re-create an extract made using ipumsr with ipumspy and vice versa!