From 1210debed55f07adcdb8eebeb38b70feb49cced2 Mon Sep 17 00:00:00 2001 From: carl colglazier Date: Tue, 15 Oct 2024 12:13:45 -0500 Subject: [PATCH] Small typo fixes in introduction vignette --- vignettes/introduction-to-tidyjson.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/introduction-to-tidyjson.Rmd b/vignettes/introduction-to-tidyjson.Rmd index 63ad605..417b79a 100644 --- a/vignettes/introduction-to-tidyjson.Rmd +++ b/vignettes/introduction-to-tidyjson.Rmd @@ -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: