reskew_binom_test: Perform the exact binomial test with custom output format

Description Usage Arguments Examples

Description

This function is a wrapper for binom.test() with a custom output format. Specifically, the function returns a dataframe with columns for the mean of the input vector as well as min and max values calculated from binom.test. This function is particularly useful in conjunction with the stat_summary() function in ggplot2 for plotting summary statistics of binary data.

Usage

1
reskew_binom_test(numeric.vector)

Arguments

numeric.vector

A binary numeric vector.

Examples

1
2
3
test.vector <- rep(c(1, 0), 25)

reskew_binom_test(test.vector)

eveskew/reskew documentation built on May 16, 2019, 7:10 p.m.