apply_mask: Apply a feature mask

Description Usage Arguments

View source: R/apply-mask.R

Description

Internal function. Applies a 'mask' to a table to ensure it has the appropriate column values, in an effort to avoid explosions. How this works is that it rbinds the mask and the dat, with fill = TRUE, then removes the masked row, leaving only the original data, plus whatever columns were missing but expected, behind and with NA

Usage

1
apply_mask(mask_names, dat)

Arguments

mask_names

A Vector of mask names to apply

dat

The data set to apply them to.


anthonyshook/nhldata documentation built on Feb. 22, 2021, 3:51 a.m.