Description Usage Arguments Value Examples
cbind
a named atomic vector
's values
with its names
to form id
(from the names) and
content
columns.
1 | tidy_vector(x, id.name = "id", content.name = "content", ...)
|
x |
A named atomic |
id.name |
The name to use for the column created from the |
content.name |
The name to use for the column created from the |
... |
ignored. |
Returns a data.table
with the names
from the vector
as an id
column.
1 2 | x <- setNames(sample(LETTERS[1:6], 1000, TRUE), sample(state.name[1:5], 1000, TRUE))
tidy_vector(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.