Merge pull request #14 from harrismcgehee/patch-1

Update lists.Rmd
This commit is contained in:
Hadley Wickham 2015-12-11 11:17:41 -06:00
commit d7bda8ed2c
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ This pattern of looping over a list and doing something to each element is so co
* `map_chr()` returns a character vector.
* `map_df()` returns a data frame.
* `walk()` returns nothing. Walk is a little different to the others because
it's called exclusively its side effects, so it's described in more detail
it's called exclusively for its side effects, so it's described in more detail
later in [walk](#walk).
Each functions takes a list as input, applies a function to each piece, and then returns a new vector that's the same length as the input. The type of the vector is determine by the specific map function. Usually you want to use the most specific avaiable; using `map()` only as a fallback when there is no specialised equivalent available.