filter {narray} | R Documentation |
Function to discard subsets of an array (NA or drop)
Description
Function to discard subsets of an array (NA or drop)
Usage
filter(X, along, FUN, subsets = base::rep(1, dim(X)[along]),
na.rm = FALSE)
Arguments
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 |
Value
An array where filtered values are NA
or dropped
[Package narray version 0.5.1 Index]