title: Series of utility functions in R using formulas. author: Charles-Édouard Giguère date: 2019-04-01
correlation: function to produce correlation matrix. The associated print method only prints the lower triangle of the matrix.
cont.desc: function to describe continuous variables
cross: crosstabs builder with an optional latex and excel output. See ftab also to print a table with frequencies and percentages in one table.
descr: function to describe a mixture of continuous and categorical variables
freq: frequencies of a vector or a data.frame.
strutil: Series of string utility. For a more extensive set of functions use the stringi package.
sum.n: sum weighted by the number of non missing values.
meansd: mean and sd displayed in a string.
cf: Extract formated coefficient.
clip: put a matrix-like object into clipboard.
ftab: add percentages to a table to get percentages and frequencies in the same output.
meansd: function that combines mean and sd in the same output. To be used with xf.
view: view matrix-like objects in a browser like in R-studio.
xf: Function similar to xtabs but applied to a continuous variable. This function applies a function to a variable across levels of one or more categorical variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.