This R-extension package contains dozens of functions useful for: database style joins [nerge()] & aggregation [bestBy(), groupBy() & regroup()], database migration [dbWriteTable2()], file I/O [write.delim(), read.tab()], text parsing / data mining [m()], data structure conversion [nv(), tab2df()], summarizing & reporting [pct(), fit.1ln.rprt()], character string manipulation [m() & pad()], legend table making [sstable() & leghead()] & plot placement [legend.position()], plot annotation [labsegs() & mvlabs()], data visualization [pies(), spie(), & heatmatrix()], and data exploration [hyperplot(), plot.xy.ab.p()], batch scripting [parseArgString()]. The package's greatest contributions stem from its database style merge, aggregation and interface functions as well as in it's extensive use and propagation of row, column and vector names in most functions. The latest additions are plotting functions [confound.grid() & sparge()] that intake a dataframe & formulas to visually resolve variable confounding (Simpson, 1951).
If you'd like to cite 'caroline', please cite as follows:
"David M. Schruth (2026) "caroline A Collection of Database, Data Structure, Visualization, and Utility Functions for R.", "Comprehensive R Archive Network", "https://CRAN.R-project.org/package=caroline")
Install the stable release from CRAN:
install.packages("caroline")
Or install directly from github using devtools
library(caroline)
See the online package vignette for more examples:
browseVignettes("caroline")
Take a look at the built-in data:
head(treeloss)
Basic sparge plot using built-in data:
plot.sparge(treeloss)
Get help:
?n
?nv
?pct
?nerge
?tab2df
?sstable
?groupBy
?bestBy
?sparge
?heatmatrix
?confound.grid