kirkegaard: conditional recoding with conditional_change()

www.emilkirkegaard.com

Usually working with large public datasets requires that one recode variables. This can be quite repetitive. When variables only have a few possible values, one can use something like plyr's mapvalues() for great benefit (see my answer at SO). However, when there is an indefinite number of different values, it is not useful. What one wants to do is

## kirkegaard: conditional recoding with conditional_change()

## kirkegaard: conditional recoding with…

## kirkegaard: conditional recoding with conditional_change()

Usually working with large public datasets requires that one recode variables. This can be quite repetitive. When variables only have a few possible values, one can use something like plyr's mapvalues() for great benefit (see my answer at SO). However, when there is an indefinite number of different values, it is not useful. What one wants to do is