From 326d5b8511ee400391911a6ddb71828f9fa7864a Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 3 Feb 2016 11:41:44 -0600 Subject: [PATCH] Note about turning lists into data frames --- lists.Rmd | 7 +++++++ 1 file changed, 7 insertions(+) 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