A few handy R functions
devtools::install_github("patr1ckm/patr1ckm")
hh
- return a small number of list elements, rows and/or columnsht
- return a small number of non-overlapping rows and columns from top/bottom and
cbb
,cb
lists of colorblind friendly colors
applyna
- applyis.na
to margins of a matrixpw.tables
- compute pairwise tables for all pairs of variables
reup
re-install an already loaded package from githubpush
add, commit, and push changes to tracked files to githubcommit
add and commit changes to tracked files
lsos
- print objects and sizes (fromdmisc
, others)clear.warnings
- to clear warningsput.args
- put the default arguments of a function into an environment (default .GlobalEnv)is.special
- check ifx
isNA
,NaN
, orInf
fac2num
- convert factors to numbers (fromkbroman
)vec2sym
- create a symmetric matrix from a vector of the elements of the upper or lower triangle, by row or column