Note about turning lists into data frames
This commit is contained in:
parent
8101753650
commit
326d5b8511
|
@ -511,6 +511,13 @@ df <- dplyr::data_frame(x = 1:3, y = c("a", "b", "c"))
|
||||||
df %>% transpose() %>% str()
|
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
|
### Exercises
|
||||||
|
|
||||||
## Dealing with failure
|
## Dealing with failure
|
||||||
|
|
Loading…
Reference in New Issue