Adding back an NA, closes #1273
This commit is contained in:
parent
9ee09e9441
commit
661b0a5339
|
@ -3,6 +3,7 @@
|
|||
```{r}
|
||||
#| results: "asis"
|
||||
#| echo: false
|
||||
|
||||
source("_common.R")
|
||||
status("complete")
|
||||
```
|
||||
|
@ -166,7 +167,7 @@ str_c("Hello ", c("John", "Susan"))
|
|||
`str_c()` is very similar to the base `paste0()`, but is designed to be used with `mutate()` by obeying the usual tidyverse rules for recycling and propagating missing values:
|
||||
|
||||
```{r}
|
||||
df <- tibble(name = c("Flora", "David", "Terra"))
|
||||
df <- tibble(name = c("Flora", "David", "Terra", NA))
|
||||
df |> mutate(greeting = str_c("Hi ", name, "!"))
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue