diff --git a/slides/data-types.Rmd b/slides/data-types.Rmd index b1b47ab..b53069a 100644 --- a/slides/data-types.Rmd +++ b/slides/data-types.Rmd @@ -395,30 +395,10 @@ class: middle # stringr functions ] -Locale-sensitive operations - -```{r} -str_to_upper("Introduction to the tidyverse") -``` - -??? - -We can turn convert cases with `str_to_upper()` and turn strings into yells. - -These functions are called "locale-sensitive operations" because they can follow capitalization and alphabetization rules in different languages. - ---- - -class: middle - -.top-fixed[ -# stringr functions -] - Pattern matching ```{r eval = FALSE} -str_view_all("Introduction to the tidyverse", "[aeiou]") +str_view("Introduction to the tidyverse", "[aeiou]") ``` ```{r echo = FALSE} diff --git a/slides/data-types.html b/slides/data-types.html index 8cb0d8b..14fa619 100644 --- a/slides/data-types.html +++ b/slides/data-types.html @@ -335,36 +335,11 @@ # stringr functions ] -Locale-sensitive operations - - -```r -str_to_upper("Introduction to the tidyverse") -``` - -``` -## [1] "INTRODUCTION TO THE TIDYVERSE" -``` - -??? - -We can turn convert cases with `str_to_upper()` and turn strings into yells. - -These functions are called "locale-sensitive operations" because they can follow capitalization and alphabetization rules in different languages. - ---- - -class: middle - -.top-fixed[ -# stringr functions -] - Pattern matching ```r -str_view_all("Introduction to the tidyverse", "[aeiou]") +str_view("Introduction to the tidyverse", "[aeiou]") ``` @@ -498,7 +473,7 @@ ``` ] .pull-right[ -<img src="data-types_files/figure-html/unnamed-chunk-22-1.png" width="90%" /> +<img src="data-types_files/figure-html/unnamed-chunk-21-1.png" width="90%" /> ] --- @@ -516,13 +491,13 @@ ] .pull-right[ -<img src="data-types_files/figure-html/unnamed-chunk-24-1.png" width="90%" /> +<img src="data-types_files/figure-html/unnamed-chunk-23-1.png" width="90%" /> ] --- # What are we trying to show? -![](data-types_files/figure-html/unnamed-chunk-25-1.png)<!-- --> +![](data-types_files/figure-html/unnamed-chunk-24-1.png)<!-- --> --- # Factors have an ordering @@ -591,7 +566,7 @@ ] .pull-right[ -<img src="data-types_files/figure-html/unnamed-chunk-29-1.png" width="90%" /> +<img src="data-types_files/figure-html/unnamed-chunk-28-1.png" width="90%" /> ] --- @@ -613,7 +588,7 @@ ] .pull-right[ -<img src="data-types_files/figure-html/unnamed-chunk-31-1.png" width="90%" /> +<img src="data-types_files/figure-html/unnamed-chunk-30-1.png" width="90%" /> ] ---