commit
1ad1ffcd25
|
@ -529,7 +529,7 @@ There are a few differences between `map_*()` and `col_summary()`:
|
||||||
|
|
||||||
### Shortcuts
|
### Shortcuts
|
||||||
|
|
||||||
There are a few shortcuts that you can use with `.f` in order to save a little typing. Imagine you want to fit a linear model to each group in a dataset. The following toy example splits the up the `mtcars` dataset in to three pieces (one for each value of cylinder) and fits the same linear model to each piece:
|
There are a few shortcuts that you can use with `.f` in order to save a little typing. Imagine you want to fit a linear model to each group in a dataset. The following toy example splits up the `mtcars` dataset into three pieces (one for each value of cylinder) and fits the same linear model to each piece:
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
models <- mtcars %>%
|
models <- mtcars %>%
|
||||||
|
|
Loading…
Reference in New Issue