diff --git a/lists.Rmd b/lists.Rmd index d5472f9..d1fadfb 100644 --- a/lists.Rmd +++ b/lists.Rmd @@ -511,6 +511,13 @@ df <- dplyr::data_frame(x = 1:3, y = c("a", "b", "c")) df %>% transpose() %>% str() ``` +### Turning lists into data frames + +* Have a deeply nested list with missing pieces +* Need a tidy data frame so you can visualise, transform, model etc. +* What do you do? +* By hand with purrr, talk about `fromJSON` and `tidyJSON` + ### Exercises ## Dealing with failure