Fixing typos in iteration.Rmd (#313)
This commit is contained in:
parent
66d4281c1b
commit
e6a99ee9cb
|
@ -484,7 +484,7 @@ The pattern of looping over a vector, doing something to each element and saving
|
|||
|
||||
* `map()` makes a list.
|
||||
* `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_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. `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`.
|
||||
|
||||
(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.)
|
||||
|
|
Loading…
Reference in New Issue