diff --git a/hierarchy.Rmd b/hierarchy.Rmd index b27414b..085685f 100644 --- a/hierarchy.Rmd +++ b/hierarchy.Rmd @@ -21,7 +21,7 @@ library(purrr) ## Extracting deeply nested elements -Some times you get data structures that are very deeply nested. A common source of such data is JSON from a web API. I've previously downloaded a list of GitHub issues related to this book and saved it as `issues.json`. Now I'm going to load it into a list with jsonlite. By default `fromJSON()` tries to be helpful and simplifies the structure a little for you. Here I'm going to show you how to do it with purrr, so I set `simplifyVector = FALSE`: +Sometimes you get data structures that are very deeply nested. A common source of such data is JSON from a web API. I've previously downloaded a list of GitHub issues related to this book and saved it as `issues.json`. Now I'm going to load it into a list with jsonlite. By default `fromJSON()` tries to be helpful and simplifies the structure a little for you. Here I'm going to show you how to do it with purrr, so I set `simplifyVector = FALSE`: ```{r} # From https://api.github.com/repos/hadley/r4ds/issues