detect_mask: Detect mask groups in a vector

Description Usage Arguments Value Examples

View source: R/init_masks.R

Description

Detect mask groups in a vector

Usage

1
detect_mask(v, mask_ranges)

Arguments

v

Input vector

mask_ranges

List of start, end tuples for each of the mask groups

Value

A number in which the i-th bit corresponds to the absence of NAs in the i-th mask group,

Examples

1
detect_mask(c(NA,NA,3:10), list(c(1,2), c(3,6), c(7,10)))

mkuhn/maskedCorr documentation built on May 23, 2019, 2:03 a.m.