make_n_and_percent_table: Make a table showing the number (n) and percent of the...

Description Usage Arguments Value Examples

View source: R/tables.R

Description

Make a table showing the number (n) and percent of the population (e.g. % of nrow()) for each value in a variable(s).

Usage

1

Arguments

data

A data.frame with the data you want to make the table from.

columns

A string or vector of strings with the column names to make the N and % from.

Value

A data.frame with one row for each value in the inputted variable(s) and columns showing the N and % for that value.

Examples

1

crimeutils documentation built on Feb. 3, 2021, 5:07 p.m.