From ce1aa5fbff96a26c16803c98800f01b6d10f7e68 Mon Sep 17 00:00:00 2001 From: George Wang Date: Sun, 4 Oct 2020 00:35:40 +1000 Subject: [PATCH] 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. --- tidy.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tidy.Rmd b/tidy.Rmd index 19f0f83..654335e 100644 --- a/tidy.Rmd +++ b/tidy.Rmd @@ -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 ```