Description Usage Arguments Value Examples
Deprecated, use tidy_vector
instead.
1 | bind_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 3 4 5 | ## Not run:
x <- setNames(sample(LETTERS[1:6], 1000, TRUE), sample(state.name[1:5], 1000, TRUE))
bind_vector(x)
## End(Not run)
|
id content
1: California C
2: California E
3: Arkansas D
4: Alaska B
5: Alabama C
---
996: California E
997: Alaska A
998: Arkansas D
999: Arkansas F
1000: Alaska B
Warning message:
Deprecated, use textshape::tidy_vector() instead.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.