epitable"

library(epitable)
library(dplyr)

The epitable package creates a frequency and percentage table commonly used in epidemiological papers. It is a wrapper for the htmlTables-package.

head(example_data)

Counts and frequencies of the variables colorand clarity grouped by cut is obtained below:

freq_by(dataset = example_data, var_vector = c("color", "clarity"), by_group = "cut" )

The by_group variable must be of class factor, to ensure correct order.

To do in a possible future:

The output is a HTML-table created by the htmlTable-package. The HTML-output looks best if no CSS is used.



Try the epitable package in your browser

Any scripts or data that you put into this service are public.

epitable documentation built on Sept. 28, 2017, 1:02 a.m.