powered by
This function converts a named numeric vector to a table.
namedNumericToTable(x)
A table with the same names and values as the input vector.
A named numeric vector.
# Convert a named numeric vector to a table vec <- c(a = 1, b = 2, c = 3) namedNumericToTable(vec)
Run the code above in your browser using DataLab