Update tidy.Rmd (#865)
Line 506: When fixing the string format in the `key` column using the `str_replace` function, I think the column name was mistakenly stated as "names_from", where it should actually be "key", which is the original column name.
This commit is contained in:
parent
9d1b294daf
commit
ce1aa5fbff
2
tidy.Rmd
2
tidy.Rmd
|
@ -503,7 +503,7 @@ We need to make a minor fix to the format of the column names: unfortunately the
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
who2 <- who1 %>%
|
who2 <- who1 %>%
|
||||||
mutate(names_from = stringr::str_replace(key, "newrel", "new_rel"))
|
mutate(key = stringr::str_replace(key, "newrel", "new_rel"))
|
||||||
who2
|
who2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue