Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhcullen committed Aug 11, 2024
1 parent 2ed223a commit 8ad050c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 52 deletions.
22 changes: 1 addition & 21 deletions slides/data-types.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
37 changes: 6 additions & 31 deletions slides/data-types.html
Original file line number Diff line number Diff line change
Expand Up @@ -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]")
```


Expand Down Expand Up @@ -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%" />
]

---
Expand All @@ -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
Expand Down Expand Up @@ -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%" />
]

---
Expand All @@ -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%" />
]

---
Expand Down

0 comments on commit 8ad050c

Please sign in to comment.