Convert a Named Vector to a Data Frame

named_vector_to_data_frame(x)

Arguments

x

named vector

Value

data frame with columns name, containing the names of x and value, containing the values of x

Examples

kwb.pathdict:::named_vector_to_data_frame(c(a = 1, b = 2, c = 3))
#> name value #> 1 a 1 #> 2 b 2 #> 3 c 3