powered by
This function converts a table to a numeric vector.
tableToNumeric(x)
A numeric vector with names preserved from the table.
A table to be converted.
# Convert a table to numeric tbl <- table(c("a", "b", "a")) tableToNumeric(tbl)
Run the code above in your browser using DataLab