๐Ÿ”ฅ Matt Dancho (Business Science) ๐Ÿ”ฅ
๐Ÿ”ฅ Matt Dancho (Business Science) ๐Ÿ”ฅ

@mdancho84

6 Tweets Jan 05, 2023
I was working with 662 JSON files today and I found these functions useful in R ๐Ÿงต
#rstats
1. jsonlite::read_json()
Converts JSON to nested lists.
2. listviewer::jsonedit()
Makes it easy to inspect the json interactively.
3. enframe()
Converts a list to a tibble.
4. unnest_wider()
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

Loading suggestions...