powered by
Deprecated, use tidy_vector instead.
tidy_vector
bind_vector(x, id.name = "id", content.name = "content", ...)
Returns a data.table with the names
data.table
names
from the vector as an id column.
vector
id
A named atomic vector.
The name to use for the column created from the vector names.
The name to use for the column created from the vector values.
ignored.
if (FALSE) { x <- setNames(sample(LETTERS[1:6], 1000, TRUE), sample(state.name[1:5], 1000, TRUE)) bind_vector(x) }
Run the code above in your browser using DataLab