tabletovector: Table to vector

Description Usage Arguments

View source: R/tabletovector.R

Description

Convenience function to take a distribution table and turn it into a vector of counts.

Usage

1

Arguments

x

either a dataframe where column 1 is the events and column 2 is the frequency, or a vector specifying the events. X can also be a table of class table.

y

if x is a vector, y must supply a vector of the same length as x with the frequencies associated with such events.


prestevez/crimeineq documentation built on May 29, 2019, 7:39 a.m.