set_column_attr: Set attributes of columns of a data.frame (or similar object)

Description Usage Arguments Value Functions

View source: R/general.R

Description

Set attributes of columns of a data.frame (or similar object)

Usage

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")

Arguments

.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).

Value

Set: .data with the column attributes set and/or modified. Get: a list of column names and attribute values.

Functions


billdenney/pknca.portation documentation built on May 3, 2019, 2:55 p.m.