mad(x, red = TRUE)
red
=TRUE) or with n-1 levels when red
=FALSE.sim
, mps
## load bernina data
data(bernina)
## have a look at summit$year
summits$year
## make binary dummies from that
mad(summits$year)
Run the code above in your browser using DataLab