Skip to content

Commit

Permalink
add note about other functions
Browse files Browse the repository at this point in the history
  • Loading branch information
carriewright11 committed Jan 12, 2024
1 parent 5410984 commit 66b4793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Data_Cleaning/Data_Cleaning.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ diet_comb
## Summary Continued

- `stringr` package has great functions for looking for specific **parts of values** especially `filter()` and `str_detect()` combined
- `stringr` also has other useful string functions like `str_detect()` (finding patterns in a column or vector), `str_subset()` (parsing text), `str_replace()` (replacing the first instance in values), `str_replace_all()` (replacing all instances in each value) and more!
- `stringr` also has other useful string functions like `str_detect()` (finding patterns in a column or vector), `str_subset()` (parsing text), `str_replace()` (replacing the first instance in values), `str_replace_all()` (replacing all instances in each value) and **more**!
- `separate()` can split columns into additional columns
- `unite()` can combine columns
- `:` can indicate when you want to start and end with columns next to one another
Expand Down Expand Up @@ -817,6 +817,7 @@ data_diet %>%
peppermint = "Peppermint")) %>%
count(Treatment, Treatment_recoded)
```

## Can update or overwrite variables with recode too!

Just use the same variable name to change the variable within mutate.
Expand Down

0 comments on commit 66b4793

Please sign in to comment.