Convert a named vector to a data frame with two columns, one for the names and one for the values.

v2d(x, values_col = NULL, names_col = "names")

Arguments

x

named vector

values_col

name of the values column -- the default takes a guess

names_col

name of the names column