harrelfe / Hmisc

Harrell Miscellaneous
Other
208 stars 81 forks source link

Problem with label() and $labels attribute #49

Closed ipuzek closed 8 years ago

ipuzek commented 8 years ago

Hello,

if a (labelled) variable does not have $label attribute, but has $labels attribute, the label() function returns $labels. I think that should be handled more strictly, via attr("label", exact = TRUE)

Kind regards, Ivan

harrelfe commented 8 years ago

Fixed for next release. Thanks.