fullTable: Fill out a one-dimensional table to include a specified range...

View source: R/fullTable.R

fullTableR Documentation

Fill out a one-dimensional table to include a specified range of values

Description

Fill out a one-dimensional table to include a specified range of values

Usage

fullTable(x, values = min(x, na.rm = TRUE):max(x, na.rm = TRUE))

Arguments

x

A vector to tabulate

values

A vector of values to be included in a table. Default is: min(x, na.rm = TRUE):max(x, na.rm = TRUE)

Value

A table object including zero cells

Examples

# Generate some artificial data and then apply `fullTable()`
set.seed(0)
finalDigits <- sample(x = 0:9, size = 1000, replace = TRUE)
fullTable(finalDigits)


ernestguevarra/nipnTK documentation built on April 13, 2024, 1:48 p.m.