powered by
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))
A table object including zero cells
A vector to tabulate
A vector of values to be included in a table. Default is: min(x, na.rm = TRUE):max(x, na.rm = TRUE)
min(x, na.rm = TRUE):max(x, na.rm = TRUE)
# Generate some artificial data and then apply `fullTable()` set.seed(0) finalDigits <- sample(x = 0:9, size = 1000, replace = TRUE) fullTable(finalDigits)
Run the code above in your browser using DataLab