DesiQuintans / tsv2label

tsv2label: Label, describe, rename, and recode datasets using a data dictionary
Other
2 stars 0 forks source link

How should levels by <NA>ed out in factor files? #7

Closed DesiQuintans closed 1 year ago

DesiQuintans commented 1 year ago

When copy/pasting from foreign dictionaries, it's sometimes desirable to tell tsv2label that a level should be NA.

I currently do this by just deleting the level from the factor file, but I think it is better (i.e. safer, more reviewable, more reproducible) to have an exclude column where, if TRUE, then the level is excluded.