Description Usage Arguments Details Value
From a test data_frames, extract col_names and id_names, and gathers the col_names columns with given value_name and key_name.
1 2 | decorate_generic(test_data, col_names, id_names, value_name,
key_name = NULL)
|
test_data |
'data.frame()' |
col_names |
'character()' |
id_names |
'character()' |
value_name |
'character(1)' Name of value output column. |
key_name |
'character(1)' Name of key column when extracted data is gathered. If NULL, then value_columns are not gathered but combined. |
If 'key_name == NULL', then columns are combined into one column with name 'value_name'.
A gathered data.frame with columns ".id", 'value_name', and optionnaly 'key_name'. The key column is then of type factor, otherwise the value column is of type factor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.