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.

Maintainer: G. Grothendieck <ggrothendieck at gmail.com>

Author(s): G. Grothendieck

Install package and any missing dependencies by running this line in your R console:

install.packages("gsubfn")

Depends R (>= 2.15.0), proto
Imports
Suggests boot, chron, doBy, grid, lattice, quantreg, reshape, svUnit, tcltk, zoo
Enhances
Linking to
Reverse
depends
fscaret, sqldf
Reverse
imports
datamart, iemisc, ITGM, MplusAutomation, smbinning, SpecHelpers, vmsbase
Reverse
suggests
ChemoSpec, lulcc, rtf
Reverse
enhances
Reverse
linking to

Package gsubfn
Materials
URL http://gsubfn.googlecode.com
Task Views NaturalLanguageProcessing
Version 0.6-6
Published 2014-08-27
License GPL (>= 2)
BugReports
SystemRequirements
NeedsCompilation no
Citation
CRAN checks gsubfn check results
Package source gsubfn_0.6-6.tar.gz