df_to_tt | R Documentation |
ElementaryTable
from a data.frame
Create an ElementaryTable
from a data.frame
df_to_tt(df)
df |
( |
If row names are not defined in df
(or they are simple numbers), then the row names are taken from the column
label_name
, if it exists. If label_name
exists, then it is also removed from the original data. This behavior
is compatible with as_result_df()
, when as_is = TRUE
and the row names are not unique.
as_result_df()
for the inverse operation.
df_to_tt(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.