pretty_table: Create a standard frequency table.

View source: R/tables.R

pretty_tableR Documentation

Create a standard frequency table.

Description

Create a standard frequency table that can be written to excel.

Usage

pretty_table(x, x_label, useNA = "ifany")

Arguments

x

A vector.

x_label

Label for the x variable?

useNA

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

Details

Standard table output is very ugly when written to excel. This function creates an easy to write to excel object.

Value

Returns a data.frame with 2 columns, the levels of x and its frequencies.

Examples

pretty_table(iris$Species, "Flower Species")


beckerbenj/eatAnalysis documentation built on Sept. 9, 2024, 5:21 a.m.