View source: R/dataInitialization.R
tableToNumeric | R Documentation |
This function converts a table to a numeric vector.
tableToNumeric(x)
x |
A table to be converted. |
A numeric vector with names preserved from the table.
# Convert a table to numeric
tbl <- table(c("a", "b", "a"))
tableToNumeric(tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.