CRAN/E | gsubfn

gsubfn

Utilities for Strings and Function Arguments

Installation

About

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.

github.com/ggrothendieck/gsubfn
Bug report File report

Key Metrics

Version 0.7
Published 2018-03-16 2232 days ago
Needs compilation? no
License GPL-2
License GPL-3
CRAN checks gsubfn results

Downloads

Yesterday 800 0%
Last 7 days 3.407 -32%
Last 30 days 18.180 -33%
Last 90 days 77.699 +12%
Last 365 days 264.449 -1%

Maintainer

Maintainer

G. Grothendieck

ggrothendieck@gmail.com

Authors

G. Grothendieck

Material

NEWS
Reference manual
Package source

In Views

NaturalLanguageProcessing

Vignettes

gsubfn: Utilities for Strings and for Function Arguments.

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

gsubfn archive

Depends

proto

Suggests

boot
chron
grid
lattice
quantreg
svUnit
tcltk
zoo

Reverse Depends

fscaret
sqldf

Reverse Imports

BMRMM
HaDeX
iemisc
MplusAutomation
nflseedR
priceR
RITAN
smbinning
SpecHelpers
Ularcirc
vietnameseConverter

Reverse Suggests

ChemoSpec
lulcc
rtf