powered by
Converts named and unnamed vectors to a data.table/tidytable.
enframe(x, name = "name", value = "value")
A vector
Name of the column that stores the names. If name = NULL, a one-column tidytable will be returned.
name = NULL
Name of the column that stores the values.
vec <- 1:3 names(vec) <- letters[1:3] enframe(vec)
Run the code above in your browser using DataLab