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 06 Mar. 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

EMVS  
The Expectation-Maximization Approach to Bayesian Variable Selection
An efficient expectation-maximization algorithm for fitting Bayesian spike-and-slab regularization p ...
Download / Learn more Package Citations See dependency  
solitude  
An Implementation of Isolation Forest
Isolation forest is anomaly detection method introduced by the paper Isolation based Anomaly Detecti ...
Download / Learn more Package Citations See dependency  
lbfgs  
Limited-memory BFGS Optimization
A wrapper built around the libLBFGS optimization library by Naoaki Okazaki. The lbfgs package implem ...
Download / Learn more Package Citations See dependency  
mlr3viz  
Visualizations for 'mlr3'
Visualization package of the 'mlr3' ecosystem. It features plots for mlr3 objects such as tasks, le ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
openxlsx  
Read, Write and Edit xlsx Files
Simplifies the creation of Excel .xlsx files by providing a high level interface to writing, stylin ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,244

Author Associations

26,265

Publication Badges

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