filt3dimArr | R Documentation |
Filtering of matrix or (3-dim) array x
: filter column according to filtCrit
(eg 'inf') and threshold filtVal
filt3dimArr(
x,
filtVal,
filtTy = ">",
filtCrit = NULL,
displCrit = NULL,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
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 |
and extract/display all col matching 'displCrit'.
This function returns a list of filtered matrixes (by 3rd dim)
filterList
; filterLiColDeList
;
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.