From 072c1525630aef8d3f655e66d6b5169ce2e4f6b7 Mon Sep 17 00:00:00 2001 From: yifan2wang <61482806+yifan2wang@users.noreply.github.com> Date: Mon, 30 Nov 2020 22:09:03 -0800 Subject: [PATCH] Update stringr-basics.Rmd Function trimws() in the base can remove leading and/or trailing whitespace from character strings. --- stringr-basics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stringr-basics.Rmd b/stringr-basics.Rmd index b92ff93..e6afeb3 100644 --- a/stringr-basics.Rmd +++ b/stringr-basics.Rmd @@ -100,7 +100,7 @@ The following table contains the `stringr` functions for basic string operations | `str_trim()` | removes leading and trailing whitespace | _none_ | | `str_pad()` | pads a string | _none_ | | `str_wrap()` | wraps a string paragraph | `strwrap()` | -| `str_trim()` | trims a string | _none_ | +| `str_trim()` | trims a string | `trimws()` | Notice that all functions in `stringr` start with `"str_"` followed by a term