filterNumeric {Director}R Documentation

filterNumeric

Description

Filter a quantitave column in List for minimum, maximum, or absolute value.

Usage

filterNumeric(List, column, min = NULL, max = NULL, absolute = NULL)

Arguments

List

Data frame containing 6 columns: source, target, description, value, sourcefc, targetfc.

column

Name of column in List to filter.

min

Minimum value to filter for in column.

max

Maximum value to filter for in column.

absolute

Absolute value to filter for in column.

Value

a filtered List

Examples

tempList <- createList(data.frame(source=c("A","B","C"),
    target=c("D","E","G"),
    description=c("consonant","vowel","consonant"),
    value=runif(3,-1,1),
    sourcefc=runif(3,-2,2),
    targetfc=runif(3,-2,2)))
filterNumeric(tempList,"sourcefc", absolute=0.5)
filterNumeric(tempList, "targetfc", max=0) # only take down-regulated targets

[Package Director version 1.6.0 Index]