Skip to content

Commit

Permalink
Merge pull request #366 from ryanzomorrodi/str_split_i_fix
Browse files Browse the repository at this point in the history
str_split_n change to str_split_i
  • Loading branch information
mine-cetinkaya-rundel authored Jun 17, 2024
2 parents 2f70518 + b6f889b commit 63a7641
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/strings.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ see <- function(rx) str_view("abc ABC 123\t.!?\\(){}\n", rx)
```

- `str_split_fixed(string, pattern, n)`: Split a vector of strings into a matrix of substrings (splitting at occurrences of a pattern match).
Also `str_split()` to return a list of substrings and `str_split_n()` to return the nth substring.
Also `str_split()` to return a list of substrings and `str_split_i()` to return the ith substring.

```{r}
str_split_fixed(sentences, " ", n = 3)
Expand Down
Binary file modified keynotes/strings.key
Binary file not shown.
Binary file modified pngs/strings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified powerpoints/strings.pptx
Binary file not shown.
Binary file modified strings.pdf
Binary file not shown.
Binary file modified translations/portuguese/strings_pt_br.pdf
Binary file not shown.
Binary file modified translations/portuguese/strings_pt_br.pptx
Binary file not shown.

0 comments on commit 63a7641

Please sign in to comment.