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]
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 07 May. 2025.
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
04/0704/0804/0904/1004/1104/1204/1304/1404/1504/1604/1704/1804/1904/2004/2104/2204/2304/2404/2504/2604/2704/2804/2904/3005/0105/0205/0305/0405/05Downloads for gsubfn3004005006007008009001000TrendBars

Today's Hot Picks in Authors and Packages

aroma.affymetrix  
Analysis of Large Affymetrix Microarray Data Sets
A cross-platform R framework that facilitates processing of any number of Affymetrix microarray samp ...
Download / Learn more Package Citations See dependency  
humanize  
Create Values for Human Consumption
An almost direct port of the 'python' 'humanize' package . Thi ...
Download / Learn more Package Citations See dependency  
funLBM  
Model-Based Co-Clustering of Functional Data
The funLBM algorithm allows to simultaneously cluster the rows and the columns of a data matrix wher ...
Download / Learn more Package Citations See dependency  
MLDS  
Maximum Likelihood Difference Scaling
Difference scaling is a method for scaling perceived supra-threshold differences. The package cont ...
Download / Learn more Package Citations See dependency  
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  

24,205

R Packages

207,311

Dependencies

65,312

Author Associations

24,206

Publication Badges

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