selected_columns(outlier_mask)
This function returns an ordered vector of all the 1-toggled bits in the outlier_mask offset by 1.
outlier_mask <- 7 autovarCore:::selected_columns(outlier_mask) [1] 1 2 3