Fixing typos in iteration.Rmd (#313)

This commit is contained in:
Brett Klamer 2016-08-26 11:15:03 -04:00 committed by Hadley Wickham
parent 66d4281c1b
commit e6a99ee9cb
1 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ The pattern of looping over a vector, doing something to each element and saving
* `map()` makes a list. * `map()` makes a list.
* `map_lgl()` makes a logical vector. * `map_lgl()` makes a logical vector.
* `map_int()` makes a integer vector. * `map_int()` makes an integer vector.
* `map_dbl()` makes a double vector. * `map_dbl()` makes a double vector.
* `map_chr()` makes a character vector. * `map_chr()` makes a character vector.
@ -645,7 +645,7 @@ In this section you'll learn how to deal this situation with a new function: `sa
1. `result` is the original result. If there was an error, this will be `NULL`. 1. `result` is the original result. If there was an error, this will be `NULL`.
1. `error` is an error object. If the operation was successful this will be 1. `error` is an error object. If the operation was successful, this will be
`NULL`. `NULL`.
(You might be familiar with the `try()` function in base R. It's similar, but because it sometimes returns the original result and it sometimes returns an error object it's more difficult to work with.) (You might be familiar with the `try()` function in base R. It's similar, but because it sometimes returns the original result and it sometimes returns an error object it's more difficult to work with.)