CHOP-CGTInformatics / REDCapTidieR

Makes it easy to read REDCap Projects into R
https://chop-cgtinformatics.github.io/REDCapTidieR/
Other
32 stars 8 forks source link

[FEATURE]: Add a `drop_labels()` function for removing labels from labelled supertibbles #184

Open rsh52 opened 5 months ago

rsh52 commented 5 months ago

Feature Request Description

Some functions, like skimr::skim() don't work well with labelled data sets. We should give users the option to remove labels after the fact for operations that may already be using their extracted supertibble. tidyREDCap::drop_labels() does a similar thing.

Checklist

larmarange commented 5 months ago

You could use labelled::remove_var_label() cf. https://larmarange.github.io/labelled/reference/remove_labels.html

A general comment: instead of referring to "labels", it would be better to distinct "variable labels" and "value labels" in the documentation.