Grrr, purrr aliasing strikes again
This commit is contained in:
parent
e3730d1350
commit
3836b6b352
|
@ -128,7 +128,7 @@ That's all there is to the for loop! Now is a good time to practice creating som
|
||||||
1. Eliminate the for loop in each of the following examples by taking
|
1. Eliminate the for loop in each of the following examples by taking
|
||||||
advantage of a built-in function that works with vectors:
|
advantage of a built-in function that works with vectors:
|
||||||
|
|
||||||
```{r}
|
```{r, eval = FALSE}
|
||||||
out <- ""
|
out <- ""
|
||||||
for (x in letters) {
|
for (x in letters) {
|
||||||
out <- stringr::str_c(out, x)
|
out <- stringr::str_c(out, x)
|
||||||
|
|
Loading…
Reference in New Issue