Function to discard subsets of an array (NA or drop)
filter(X, along, FUN, subsets = base::rep(1, dim(X)[along]),
na.rm = FALSE)
An array where filtered values are NA
or dropped
An n-dimensional array
Along which axis to apply FUN
Function to apply, needs to return TRUE
(keep) or FALSE
Subsets that should be used when applying FUN
Whether to omit columns and rows with NA
s