tableToNumeric {FastUtils} | 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)