Other packages > Find by keyword >

gsubfn  

Utilities for Strings and Function Arguments
View on CRAN: Click here


Download and install gsubfn package within the R console
Install from CRAN:
install.packages("gsubfn")

Install from Github:
library("remotes")
install_github("cran/gsubfn")

Install by package version:
library("remotes")
install_version("gsubfn", "0.7")



Attach the package and use:
library("gsubfn")
Maintained by
G. Grothendieck
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2006-03-27
Latest Update: 2018-03-16
Description:
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.
How to cite:
G. Grothendieck (2006). gsubfn: Utilities for Strings and Function Arguments. R package version 0.7, https://cran.r-project.org/web/packages/gsubfn. Accessed 05 Jun. 2026.
Previous versions and publish date:
0.1-0 (2006-03-27 09:28), 0.1-1 (2006-04-05 10:21), 0.1-2 (2006-04-18 11:58), 0.1-3 (2006-04-23 20:46), 0.1-4 (2006-08-23 21:57), 0.1-5 (2006-10-01 16:14), 0.2-0 (2006-10-06 14:57), 0.2-1 (2006-10-10 11:11), 0.2-2 (2006-10-15 11:08), 0.3-1 (2006-10-23 16:52), 0.3-3 (2006-10-28 16:55), 0.3-7 (2008-10-17 10:28), 0.3-8 (2008-12-15 10:01), 0.5-0 (2009-07-02 08:52), 0.5-1 (2010-03-16 18:23), 0.5-2 (2010-03-23 20:33), 0.5-3 (2010-06-13 10:22), 0.5-5 (2010-11-18 15:44), 0.5-7 (2011-06-07 08:35), 0.6-2 (2012-03-28 20:13), 0.6-3 (2012-04-03 09:35), 0.6-4 (2012-08-01 14:48), 0.6-5 (2012-10-22 17:58), 0.6-6 (2014-08-27 21:17)
Other packages that cited gsubfn R package
View gsubfn citation profile
Other R packages that gsubfn depends, imports, suggests or enhances
Complete documentation for gsubfn
Functions, R codes and Examples using the gsubfn R package
Some associated functions: as.function.formula . fn . gsubfn-package . gsubfn . list . match.funfn . read.pattern . strapply . transform2 . 
Some associated R codes: fn.R . gsubfn.R . list.R . read.pattern.R . strapplyc.R . transform2.R . zzz.R .  Full gsubfn package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
envirem  
Generation of ENVIREM Variables
Generation of bioclimatic rasters that are complementary to the typical 19 bioclim variables. ...
Download / Learn more Package Citations See dependency  
msm  
Multi-State Markov and Hidden Markov Models in Continuous Time
Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal d ...
Download / Learn more Package Citations See dependency  
ibb  
R Wrapper for Istanbul Municipality Open Data Portal
Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: Istanbul B ...
Download / Learn more Package Citations See dependency  
crossurr  
Cross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers
Doubly robust methods for evaluating surrogate markers as outlined in: Agniel D, Hejblum BP, Thiebau ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA