For binary variables, we often want our summary statistics to be such that we can equate "mean" with the proportion belonging to one category. In the descrip function, it appears that the default behavior is to convert categorical variables to numbers, starting with one.
For example, this summary gives us a mean of 1.5:
> mri %>% select(sex) %>% descrip()
N Msng Mean Std Dev Min 25% Mdn 75% Max
sex: 735 0 1.498 0.5003 1.000 1.000 1.000 2.000 2.000
It would be a nice feature if descrip indexed starting at zero. Even better if the output then indicated the reference group (ex: sexMale). Happy to answer any questions about this idea. Thank you!