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.

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

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