powered by
Deprecated, use tidy_vector instead.
tidy_vector
bind_vector(x, id.name = "id", content.name = "content", ...)
A named atomic vector.
vector
The name to use for the column created from the vector names.
names
The name to use for the column created from the vector values.
ignored.
Returns a data.table with the names from the vector as an id column.
data.table
id
# NOT RUN { 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