Description Functions Data Examples
A collection of functions that Ethan has found helpful for his work in R.
coxtable
: Make a pretty cox model table.
auc
: Calculate the area under the curve for longitudinal data, just like %auc.sas.
is.nontrivial.vector
: Determine if an object is a vector of length > 1.
rowMedians
: Find the medians of rows; analagous to rowMeans.
rowSDs
: Find the standard deviation of rows; analagous to rowMeans.
multiplot
: Plot more than one ggplot object in a grid fashion.
marginal.boxplot
: Plot boxplots on the margins of a scatterplot in ggplot2.
kinda.type
: Returns whether 'x' can be coerced without error or warning to <type> using as.<type>(x).
ggcolors
: Get the colors that ggplot2 uses by default.
Mode
: Calculate the mode of a vector.
oodle
: Replace all vowels (aeiou) in a name with 'oodle'.
declare.affection
: Declare affection.
pizza.data
: A data set containing time to follow-up, status at follow-up, whether someone likes pizza, their favorite flavor of pizza, their
sex, their height, and their id.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.