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

FUN

Function to apply, needs to return TRUE (keep) or FALSE

subsets

Subsets that should be used when applying FUN

na.rm

Whether to omit columns and rows with NAs

Value

An array where filtered values are NA or dropped


[Package narray version 0.5.1 Index]