goji berries

Recoding Variables Reliably and Systematically

Survey datasets typically require a fair bit of repetitive recoding of variables. Reducing errors in recoding can be done by writing functions carefully (see some tips here) and automating and systematizing naming, and application of the recode function (which can be customized) –


fromlist 

Simple functions can also be directly applied to each column of a data.frame. For instance,


data[, tolist] 
Exit mobile version