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