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.

Installers

Info: This package contains files in non-standard labels.

conda install

  • linux-64  v0.7
  • noarch  v0.7
  • win-64  v0.7
  • osx-64  v0.7
To install this package with conda run one of the following:
conda install -c conda-forge r-gsubfn
conda install -c conda-forge/label/gcc7 r-gsubfn
conda install -c conda-forge/label/cf201901 r-gsubfn

Description

PRIVACY POLICY  |  EULA (Anaconda Cloud v2.33.29) © 2019 Anaconda, Inc. All Rights Reserved.