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:G. Grothendieck

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.5-any)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

On CRAN:

10.57 score 11 stars 76 packages 872 scripts 56k downloads 3 mentions 15 exports 1 dependencies

Last updated 7 years agofrom:66d52d9c0d. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 05 2025
R-4.5-winOKFeb 05 2025
R-4.5-macOKFeb 05 2025
R-4.5-linuxOKFeb 05 2025
R-4.4-winOKFeb 05 2025
R-4.4-macOKFeb 05 2025
R-4.3-winOKFeb 05 2025
R-4.3-macOKFeb 05 2025

Exports:[<-.result$.fnas.function.formulacat0fngsubfnlistmatch.funfnmatrixfnostrapplyread.patternstrapplystrapply1strapplyctclList2R

Dependencies:proto

gsubfn: Utilities for Strings and for Function Arguments.

Rendered fromgsubfn.Rnwusingutils::Sweaveon Feb 05 2025.

Last update: 2018-03-15
Started: 2013-12-28