gsubfn: Utilities for strings and function arguments.

gsubfn 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.

Install the latest version of this package by entering the following in R:
install.packages("gsubfn")
AuthorG. Grothendieck
Date of publication2014-08-27 21:17:14
MaintainerG. Grothendieck <ggrothendieck@gmail.com>
LicenseGPL (>= 2)
Version0.6-6
http://gsubfn.googlecode.com

View on CRAN

Files

COPYING
inst
inst/ANNOUNCE
inst/WISHLIST
inst/NEWS
inst/THANKS
inst/lipsum.txt
inst/doc
inst/doc/gsubfn.Rnw
inst/doc/gsubfn.R
inst/doc/gsubfn.pdf
inst/sample.txt
inst/unitTests
inst/unitTests/runit.all.R
NAMESPACE
demo
demo/gsubfn-gries.R
demo/00Index
demo/gsubfn-si.R demo/gsubfn-cut.R demo/gsubfn-unitTests.R demo/gsubfn-chron.R demo/gsubfn-lower.R
R
R/strapplyc.R R/gsubfn.R R/read.pattern.R R/fn.R R/zzz.R
vignettes
vignettes/gsubfn.Rnw
MD5
build
build/vignette.rds
DESCRIPTION
man
man/gsubfn.Rd man/strapply.Rd man/gsubfn-package.Rd man/read.pattern.Rd man/fn.Rd man/match.funfn.Rd man/as.function.formula.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.