namedNumericToTable {FastUtils} | R Documentation |
This function converts a named numeric vector to a table.
namedNumericToTable(x)
x |
A named numeric vector. |
A table with the same names and values as the input vector.
# Convert a named numeric vector to a table
vec <- c(a = 1, b = 2, c = 3)
namedNumericToTable(vec)