Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small typo fixes in introduction vignette #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vignettes/introduction-to-tidyjson.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ the world bank. We can quickly expand all simple columns using `spread_all`
worldbank %>% spread_all
```

And we can limit the coluns produced by calling `dplyr::select` after
And we can limit the columns produced by calling `dplyr::select` after

```{r}
worldbank %>% spread_all %>% select(regionname, totalamt)
```

But worldbank also contains arrays, which cannot be naively spread into new
columns. We can use `gather_object` to gather all name-value paris by name,
columns. We can use `gather_object` to gather all name-value pairs by name,
and then `json_types` to identify the type of JSON stored under each value, and
`dplyr::count` to aggregate across documents:

Expand Down