-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME.Rmd
60 lines (37 loc) · 2.5 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# strex <img src="man/figures/logo.png" align="right" height=140/>
There are some things that I wish were easier with the `stringr` or `stringi` packages. The foremost of these is the extraction of numbers from strings. `stringr` lets you figure this out the regex for yourself; `strex` takes care of this for you. There are many more useful functionalities in `strex`. In particular, there's a `match_arg()` function which is more flexible than the base `match.arg()`. Contributions to this package are encouraged: it is intended as a miscellany of string manipulation functions which cannot be found in `stringi` or `stringr`.
[](https://github.com/rorynolan/strex/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/rorynolan/strex?branch=master)

[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://cran.r-project.org/package=strex)
[](https://cranlogs.r-pkg.org/badges/grand-total/strex)
[](https://cranlogs.r-pkg.org/badges/strex)
## Installation
You can install the release version of `strex` from [CRAN](https://CRAN.R-project.org) with:
```{r, eval=FALSE}
install.packages("strex")
```
You can install the development version of `strex` from [GitHub](https://github.com/rorynolan/strex/) with:
```{r, eval=FALSE}
devtools::install_github("rorynolan/strex")
```
## How to use the package
See the package website at https://rorynolan.github.io/strex/.
## Contribution
The preferred method of contribution is by GitHub pull request.
Please note that the `strex` project is released with a
[Contributor Code of Conduct](inst/CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.