From 6cc8b759a200605ae5479306ab2a382f5598a05d Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Sat, 7 Nov 2015 15:20:26 +0000 Subject: [PATCH 1/2] Clarify comment, remove brackets --- strings.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings.Rmd b/strings.Rmd index 7462de6..f868140 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -57,7 +57,7 @@ x Base R contains many functions to work with strings but we'll generally avoid them because they're inconsistent and hard to remember. Their behaviour is particularly inconsistent when it comes to missing values. For examle, `nchar()`, which gives the length of a string, returns 2 for `NA` (instead of `NA`) ```{r} -# (Will be fixed in R 3.3.0) +# Bug will be fixed in R 3.3.0 nchar(NA) ``` From 7e8d4fafe1079e0ebc6794a8bfec255dae71fb53 Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Sat, 7 Nov 2015 15:26:47 +0000 Subject: [PATCH 2/2] Update text related to autocompletion Also fixes incorrect conjugation for 'trigger' --- strings.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strings.Rmd b/strings.Rmd index f868140..f44529d 100644 --- a/strings.Rmd +++ b/strings.Rmd @@ -61,13 +61,13 @@ Base R contains many functions to work with strings but we'll generally avoid th nchar(NA) ``` -Instead we'll use functions from stringr. These have more evocative names, and all start with `str_`: +Instead we'll use functions from stringr. These have more intuitive names, and all start with `str_`: ```{r} str_length(NA) ``` -The common `str_` prefix is particularly useful if you use RStudio, because typing `str_` trigger autocomplete, so you can easily see all of the stringr functions. +The common `str_` prefix is particularly useful if you use RStudio, because typing `str_` will trigger autocomplete, allowing you to see all stringr functions. ### Combining strings