filt3dimArr: Filter three-dimensional array of numeric data

View source: R/filt3dimArr.R

filt3dimArrR Documentation

Filter three-dimensional array of numeric data

Description

Filtering of matrix or (3-dim) array x : filter column according to filtCrit (eg 'inf') and threshold filtVal

Usage

filt3dimArr(
  x,
  filtVal,
  filtTy = ">",
  filtCrit = NULL,
  displCrit = NULL,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

x

array (3-dim) of numeric data

filtVal

(numeric, length=1) for testing inferior/superor/equal condition

filtTy

(character, length=1) which type of testing to perform (may be 'eq','inf','infeq','sup','supeq', '>', '<', '>=', '<=', '==')

filtCrit

(character, length=1) which column-name consider when filtering filter with 'filtVal' and 'filtTy'

displCrit

(character) column-name(s) to display

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Details

and extract/display all col matching 'displCrit'.

Value

This function returns a list of filtered matrixes (by 3rd dim)

See Also

filterList; filterLiColDeList;

Examples

arr1 <- array(11:34, dim=c(4,3,2), dimnames=list(c(LETTERS[1:4]),
  paste("col",1:3,sep=""), c("ch1","ch2")))
filt3dimArr(arr1,displCrit=c("col1","col2"),filtCrit="col2",filtVal=7)

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.