R/fullTable.R
fullTable.Rd
Fill out a one-dimensional table to include a specified range of values
fullTable(x, values = min(x, na.rm = TRUE):max(x, na.rm = TRUE))
x | A vector to tabulate |
---|---|
values | A vector of values to be included in a table. Default is:
|
A table object including zero cells
# Generate some artificial data and then apply `fullTable()` set.seed(0) finalDigits <- sample(x = 0:9, size = 1000, replace = TRUE) fullTable(finalDigits)#> 0 1 2 3 4 5 6 7 8 9 #> 95 80 96 102 106 98 109 95 109 110