Note about turning lists into data frames

This commit is contained in:
hadley 2016-02-03 11:41:44 -06:00
parent 8101753650
commit 326d5b8511
1 changed files with 7 additions and 0 deletions

View File

@ -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