Convert an outlier_mask to a vector of column indices

Usage

selected_columns(outlier_mask)

Arguments

outlier_mask
An integer representing the outlier mask.

Value

A vector of column indices corresponding to the outlier mask.

Description

This function returns an ordered vector of all the 1-toggled bits in the outlier_mask offset by 1.

Examples

outlier_mask <- 7 autovarCore:::selected_columns(outlier_mask)
[1] 1 2 3