stri_split - add `from_last` parameter
Open
low priority
question
- Dominant language
- C++
- Stars
- 318
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Add logical `backwards` parameter to split functions which will work when n_max != -1. If true then splitting is done from the end of a string.
> stri_split_fixed("ala ma kota"," ")
> [[1]]
> [1] "ala" "ma" "kota"
>
> stri_split_fixed("ala ma kota"," ",n=2)
> [[1]]
> [1] "ala" "ma kota"
>
> stri_split_fixed("ala ma kota"," ",n=2, backwards=TRUE)
> [[1]]
> [1] "ala ma" "kota"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.