Package: gsubfn 0.7
gsubfn: Utilities for Strings and Function Arguments
The gsubfn function is like gsub but can take a replacement function or certain other objects instead of the replacement string. Matches and back references are input to the replacement function and replaced by the function output. gsubfn can be used to split strings based on content rather than delimiters and for quasi-perl-style string interpolation. The package also has facilities for translating formulas to functions and allowing such formulas in function calls instead of functions. This can be used with R functions such as apply, sapply, lapply, optim, integrate, xyplot, Filter and any other function that expects another function as an input argument or functions like cat or sql calls that may involve strings where substitution is desirable. There is also a facility for returning multiple objects from functions and a version of transform that allows the RHS to refer to LHS used in the same transform.
Authors:
gsubfn_0.7.tar.gz
gsubfn_0.7.zip(r-4.5)gsubfn_0.7.zip(r-4.4)gsubfn_0.7.zip(r-4.3)
gsubfn_0.7.tgz(r-4.4-any)gsubfn_0.7.tgz(r-4.3-any)
gsubfn_0.7.tar.gz(r-4.5-noble)gsubfn_0.7.tar.gz(r-4.4-noble)
gsubfn_0.7.tgz(r-4.4-emscripten)gsubfn_0.7.tgz(r-4.3-emscripten)
gsubfn.pdf |gsubfn.html✨
gsubfn/json (API)
NEWS
# Install 'gsubfn' in R: |
install.packages('gsubfn', repos = c('https://ggrothendieck.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ggrothendieck/gsubfn/issues
Last updated 7 years agofrom:66d52d9c0d. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 07 2024 |
R-4.5-win | OK | Nov 07 2024 |
R-4.5-linux | OK | Nov 07 2024 |
R-4.4-win | OK | Nov 07 2024 |
R-4.4-mac | OK | Nov 07 2024 |
R-4.3-win | OK | Nov 07 2024 |
R-4.3-mac | OK | Nov 07 2024 |
Exports:[<-.result$.fnas.function.formulacat0fngsubfnlistmatch.funfnmatrixfnostrapplyread.patternstrapplystrapply1strapplyctclList2R
Dependencies:proto
Readme and manuals
Help Manual
Help page | Topics |
---|---|
gsubfn | gsubfn-package |
Make a one-line function from a formula. | as.function.formula |
Transform formula arguments to functions. | $.fn eval.with.vis fn matrixfn |
Pattern Matching and Replacement | cat0 gsubfn |
Multiple value assignment. | list [<-.result |
Generic extended version of R match.fun | match.funfn |
Read file or text string using a regular expression to separate fields. | read.pattern |
Apply a function over a string or strings. | ostrapply strapply strapply1 strapplyc tclList2R |