Skip to contents

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

Usage

fullTable(x, values)

Arguments

x

A vector to tabulate

values

A vector of values to be included in a table

Value

A one-dimensional table with specified values

Author

Mark Myatt

Examples


  xTable <- fullTable(x = sample(x = 5,
                                 size = 100,
                                 replace = TRUE),
                      values = 1:5)
  xTable
#>  1  2  3  4  5 
#> 19 16 18 21 26