Ethan: Ethan's Functions

Description Functions Data Examples

Description

A collection of functions that Ethan has found helpful for his work in R.

Functions

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.

Data

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.

Examples

1

eheinzen/Ethan documentation built on May 3, 2019, 4:32 p.m.