Set an attribute value on selected columns of a data frame
.attr_setcolumn(x, cols, attr_name, attr_value)
The data frame with the modified column attributes.
A data frame containing the columns to modify.
A tidyselect expression specifying which columns to modify
(e.g., c(var1, var2)
or starts_with("score")
).
A character string giving the name of the attribute to set.
The value to assign to the attribute for all selected columns.