prop: Quickly calculate the proportion of values in a column

Description Usage Arguments Value Examples

View source: R/prop.R

Description

Quickly calculate the proportion of values in a column

Usage

1
prop(data, column, na.rm = TRUE)

Arguments

data

a tibble or data.frame

column

a column to be counted

na.rm

a logical to remove NAs or not

Value

a tibble

Examples

1
prop(mtcars, am)

averyrobbins1/sometools documentation built on Feb. 18, 2021, 5:08 p.m.