Closed mbcann01 closed 2 years ago
Just talked this over with Doug. We agreed to keep everything how it is except that description
will win out over label
if both exist. The idea is that if I have taken the time to manually type out a description, it should win out over whatever happened to be in label.
Currently, the documentation gives preference to the
description
attribute. I think this is mostly because the column attributes table in the codebook document says, "Column description". I think this is arguably a more informative choice of words than "Column label".However, whenever a column includes a
label
attribute and adescription
attribute, thelabel
attribute is given preference by the code. In other words, the text in thelabel
attribute is displayed in the "Column description" portion of the column attributes table in the codebook document -- not the text indescription
.Therefore, the way the documentation is written and the way the code works seem inconsistent to me. I think that leaves two choices:
Change the documentation to give the
label
attribute preference throughout. In fact, we can probably just drop thedescription
attribute completely.Change
cb_get_col_attributes.R
to give preference to thedescription
attribute over thelabel
attribute when they both exist.