R package providing ~145 utility functions for data manipulation, regression analysis, plotting, and parallel computing.
All functions live in the iaw environment and are called as
iaw$func().
# install.packages("remotes") # if needed
remotes::install_github("iwelch/Riaw")Then load it:
library(iaw)Required packages (parallel, data.table, stats, utils,
grDevices, graphics, tools) are installed automatically.
Optional packages that enable additional features:
install.packages(c("Cairo", "sandwich", "lmtest", "knitr",
"MASS", "dplyr", "fst", "glue", "bit64"))git clone git@github.com:iwelch/Riaw.git
cd Riaw
make installThis copies source files to inst/lib/, generates man pages, and
runs R CMD INSTALL.
library(iaw)
# regression with enhanced output
fit <- iaw$olm(mpg ~ wt + hp, data = mtcars)
print(fit)
# population covariance
iaw$covp(mtcars$wt, mtcars$mpg)
# parallel grouped computation
iaw$rbind.mc.by(mtcars, mtcars$cyl, function(d) {
data.frame(cyl = d$cyl[1], mean_mpg = mean(d$mpg))
})Help is available for every function:
?olm
?covp
?rbind.mc.byGPL (>= 3)