DesiQuintans / tsv2label

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

Convert binary values to `TRUE`/`FALSE` #12

Closed DesiQuintans closed 9 months ago

DesiQuintans commented 1 year ago

The package already has a way to convert variables to Factors, but it also needs a way to convert variables to Logical (TRUE/FALSE). It should not be based on making yet another file; it should either be:

  1. A new column in index.tsv that flags a variable to be converted to Logical
  2. A keyword that you can type into the existing factor_file column that overrides the file search and triggers the conversion.

Maybe #2 is better because it also lets me scale into other built-in converters? See #13.

DesiQuintans commented 9 months ago

Closed by commit 5c0c7584279cd10b8351b3764bf888f0e6c90162. This was implemented as "converters" that are triggered by using the converter tags: