I was working with 662 JSON files today and I found these functions useful in R ๐งต
#rstats
#rstats
1. jsonlite::read_json()
Converts JSON to nested lists.
Converts JSON to nested lists.
2. listviewer::jsonedit()
Makes it easy to inspect the json interactively.
Makes it easy to inspect the json interactively.
3. enframe()
Converts a list to a tibble.
Converts a list to a tibble.
4. unnest_wider()
Unnests the tibble and converts the json into a wide tibble.
Unnests the tibble and converts the json into a wide tibble.
Hope this helps if you work with json!
Iโd youโd like more help check out my R cheat sheet!
Consolidates the R ecosystem of 20,000 Pkgs into 100 BEST
business-science.io
Iโd youโd like more help check out my R cheat sheet!
Consolidates the R ecosystem of 20,000 Pkgs into 100 BEST
business-science.io
Loading suggestions...