filterNumeric: filterNumeric

Description Usage Arguments Value Examples

View source: R/functions.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
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

kzouchka/Director documentation built on Oct. 10, 2020, 5:29 p.m.