Skip to content

Commit be04f83

Browse files
committed
Move cheatsheet to new location
1 parent 843bfde commit be04f83

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

README.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ install.packages("stringr")
3838
devtools::install_github("tidyverse/stringr")
3939
```
4040

41+
## Cheatsheet
42+
43+
<a href="https://github.com/rstudio/cheatsheets/blob/master/strings.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/strings-cheatsheet-thumbs.png" width="630" height="242"/></a>
44+
4145
## Usage
4246

4347
All functions in stringr start with `str_` and take a vector of strings as the first argument.
@@ -49,10 +53,6 @@ str_c(x, collapse = ", ")
4953
str_sub(x, 1, 2)
5054
```
5155

52-
See a complete list on the cheatsheet:
53-
54-
<a href="https://github.com/rstudio/cheatsheets/blob/master/strings.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/strings-cheatsheet-thumbs.png" width="630" height="242"/></a>
55-
5656
Most string functions work with regular expressions, a concise language for describing patterns of text. For example, the regular expression `"[aeiou]"` matches any single character that is a vowel:
5757

5858
```{r}

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ install.packages("stringr")
4343
devtools::install_github("tidyverse/stringr")
4444
```
4545

46+
## Cheatsheet
47+
48+
<a href="https://github.com/rstudio/cheatsheets/blob/master/strings.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/strings-cheatsheet-thumbs.png" width="630" height="242"/></a>
49+
4650
## Usage
4751

4852
All functions in stringr start with `str_` and take a vector of strings
@@ -58,11 +62,6 @@ str_sub(x, 1, 2)
5862
#> [1] "wh" "vi" "cr" "ex" "de" "au"
5963
```
6064

61-
See a complete list on the
62-
cheatsheet:
63-
64-
<a href="https://github.com/rstudio/cheatsheets/blob/master/strings.pdf"><img src="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/thumbnails/strings-cheatsheet-thumbs.png" width="630" height="242"/></a>
65-
6665
Most string functions work with regular expressions, a concise language
6766
for describing patterns of text. For example, the regular expression
6867
`"[aeiou]"` matches any single character that is a vowel:

0 commit comments

Comments
 (0)