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:
George Wang 2020-10-04 00:35:40 +10:00 committed by GitHub
parent 9d1b294daf
commit ce1aa5fbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ We need to make a minor fix to the format of the column names: unfortunately the
```{r}
who2 <- who1 %>%
mutate(names_from = stringr::str_replace(key, "newrel", "new_rel"))
mutate(key = stringr::str_replace(key, "newrel", "new_rel"))
who2
```