Description Usage Arguments Value Functions
Set attributes of columns of a data.frame (or similar object)
1 2 3 4 | set_column_attr(.data, ..., .attr = "label", .allow_overwrite = TRUE,
.allow_multiple_values = TRUE, .clear = FALSE)
get_column_attr(.data, .attr = "label")
|
.data |
The data.frame or similar object |
... |
A named list of column name = attribute value. |
.attr |
The attribute name to set on the column |
.allow_overwrite |
Allow the attribute value to be overwritten if it already exists on the current column. |
.allow_multiple_values |
Allow the same attribute value to exist on multiple columns simultaneously (this is only checked for newly set attributes; not checked for existing attributes). |
.clear |
Remove the attribute from all columns (occurs before any additional processing). |
Set: .data with the column attributes set and/or modified. Get: a list of column names and attribute values.
get_column_attr
: Get the value of an attribute for all columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.