prop_table: Create a standard relative frequency table.

Description Usage Arguments Details Value Examples

View source: R/tables.R

Description

Create a simple relative frequency table with percentages.

Usage

1
prop_table(vec, useNA = "no", round_perc = 1)

Arguments

vec

A vector.

useNA

How should missing values be treated in the table? Possible values: no, ifany, always.

round_perc

With how many decimals should the percantages be given?

Details

Function is meant to be able to easily rbind various tables.

Value

Returns a data.frame with 1 row.

Examples

1
2
# Example data set
#to be done

beckerbenj/eatAnalysis documentation built on Nov. 24, 2019, 5:49 p.m.