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 29 Mar. 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
02/2702/2803/0103/0203/0303/0403/0503/0603/0703/0803/0903/1003/1103/1203/1303/1403/1503/1603/1703/1803/1903/2003/2103/2203/2303/2403/2503/2603/2703/28Downloads for gsubfn2004006008001000120014001600180020002200TrendBars

Today's Hot Picks in Authors and Packages

landmix  
Landmark Prediction for Mixture Data
Non-parametric prediction of survival outcomes for mixture data that incorporates covariates and a l ...
Download / Learn more Package Citations See dependency  
gglgbtq  
Show Pride on 'ggplot2' Plots
Provides multiple palettes based on pride flags with tailored themes. ...
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  

23,842

R Packages

207,311

Dependencies

64,420

Author Associations

23,781

Publication Badges

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