tidy_table | R Documentation |
cbind
a table
's values with its
names
to form id
(from the names) and
content
columns.
tidy_table(x, id.name = "id", content.name = "content", ...)
x |
A |
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 table
as an id
column.
x <- table(sample(LETTERS[1:6], 1000, TRUE))
tidy_table(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.