This commit is contained in:
Curtis Alexander 2016-03-23 09:41:34 -05:00
parent adc4cc77c9
commit 144382510e
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ Never feel bad about using a for loop instead of a function. The map functions a
### 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}
models <- mtcars %>%