ii <- indicator(
hihi = 2*sqrt(height)
, haha = log10(weight)
, lulz = mean(height)
, wo0t = median(weight)
)
# note: mean and median are repeated
add_indicators(women, ii)
# compute indicators first, then add
out <- confront(women, ii)
add_indicators(women, out)
Run the code above in your browser using DataLab