grambank / rgrambank

R package to access and analyse Grambank's CLDF data
Apache License 2.0
3 stars 1 forks source link

refactor binarise to use the dataframe definitions. #16

Closed SimonGreenhill closed 6 months ago

SimonGreenhill commented 1 year ago
for fid, with_zero in multistate_parameters.items():
    for ms in 'ab':
        ValueTable = gb_recode(ValueTable, fid, fid + ms, binarise_*_with_zero if with_zero else binarise_*_without_zero)