Skip to content

Commit

Permalink
Fix typos (hadley#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
behrman authored and hadley committed Jul 22, 2016
1 parent 544766d commit 77f5dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hierarchy.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77f5dde

Please sign in to comment.