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 colorsapplyna
- apply is.na
to margins of a matrixpw.tables
- compute pairwise tables for all pairs of variablesreup
re-install an already loaded package from githubpush
add, commit, and push changes to tracked files to githubcommit
add and commit changes to tracked fileslsos
- print objects and sizes (from dmisc
, others)clear.warnings
- to clear warningsput.args
- put the default arguments of a function into an environment (default .GlobalEnv)is.special
- check if x
is NA
, NaN
, or Inf
fac2num
- convert factors to numbers (from kbroman
)vec2sym
- create a symmetric matrix from a vector of the elements of the upper or lower triangle, by row or columnAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.