View source: R/tabletovector.R
Convenience function to take a distribution table and turn it into a vector of counts.
1 | tabletovector(x, y = NULL)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.