colearendt / tidyjson

Tidy your JSON data in R with tidyjson
Other
182 stars 15 forks source link

Create a programming with tidyjson vignette #79

Open jeremystan opened 8 years ago

jeremystan commented 8 years ago

Should:

  1. cover use of spread_values versus spread_all
  2. show using is_json_X functions to check inputs
stanasa commented 7 years ago

Hi Jeremy, I'd love to see a more in-depth vignette. I've got highly complex jsons with variable structure to parse, and I think tidyjson could be a lot of help. Unfortunately, the examples I see are not enough for me to understand how to use the 'verbs' of tidyjson. I'd love to see an example, starting with reading a json from file, examining its structure, and looping (or not) through it to return a nice, tidy table.

jeremystan commented 7 years ago

The goal of this vignette is to cover the details of how to ensure tidyjson always returns the correct data frame structure (e.g., using spread_all vs spread_values), and how to throw meaningful errors when future JSON inputs don't conform to your expectations.

However, I have re-written the introduction vignette and added an additional vignette on visualizing JSON here: https://github.com/jeremystan/tidyjson/tree/master/vignettes.

Attached are the rendered vignettes - let me know if they are more helpful or if you still have fundamental questions.

tidyjson-vignettes.zip