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.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'))

Peer review:

Bug tracker:https://github.com/ggrothendieck/gsubfn/issues

On CRAN:

10.27 score 11 stars 77 packages 940 scripts 26k downloads 3 mentions 15 exports 1 dependencies

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

TargetResultDate
Doc / VignettesOKNov 07 2024
R-4.5-winOKNov 07 2024
R-4.5-linuxOKNov 07 2024
R-4.4-winOKNov 07 2024
R-4.4-macOKNov 07 2024
R-4.3-winOKNov 07 2024
R-4.3-macOKNov 07 2024

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

Dependencies:proto

gsubfn: Utilities for Strings and for Function Arguments.

Rendered fromgsubfn.Rnwusingutils::Sweaveon Nov 07 2024.

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