harrelfe / Hmisc

Harrell Miscellaneous
Other
205 stars 81 forks source link

base::droplevels removes Hmisc label from factor variables #110

Open omair-a-khan opened 5 years ago

omair-a-khan commented 5 years ago

Hello,

After using base::droplevels on a labelled data frame, the labels associated with factor class variables seem to get dropped. Is there a workaround for this?

Thanks