Skip to contents

Basic, but Hopefully Useful, Functions

Data management

Functions to handle data from vectors and data frames.

colNAs()
Number of NAs by column
extrange()
Extended range
kcut()
Cut into classes of equal size
multiple()
Extract elements that appear multiple times
nsubset()
Subset vectors, matrices and data frames based on value frequency
reclass()
Reclassify the values of a vector
table()
Modified table function to handle NAs

Statistics

Functions for statistical utilities.

confint() plot(<confint>)
Confidence Intervals for Model Parameters
cv()
Coefficient of variation
se()
Standard errors
round_sum()
Rounding that preserve sum
summaryIC()
Summary of AIC/BIC

Graphs

Functions related to graphics.

dynamitePlot()
Dynamite Plots
getcolors()
Choosing colors visually
togrey() togray()
Convert continuous variable to grey levels

Package management

Functions for package management.

install_selected()
Install a list of selected packages by theme
q() quit()
Terminate an R Session (with packages list saved)
save.image()
Save the current workspace (including attached packages)
savepkglist() attpkglist() loadpkglist()
Load or save the list of attached packages
update_packages()
Update user packages (CRAN and GitHub)

Utils

Utilitary functions.

capwords()
Capitalizing - every first letter of a word is changed to upper case
date_locale()
Prints a date in any locale
init_httpgd()
Init a web graphic device from httpgd
memUse() print(<memUse>)
Memory usage of saved objects
mv()
Rename an R object
manual()
Generate package reference manual
session_info_md()
sessionInfo() formatted for Markdown
writeFunction()
Prints a function to a file