compartment_ranges: Calculates ranges of each consecutive compartment along given...

Description Usage Arguments Value Examples

Description

Entries with the same sign (i.e. positive or negative) comprise the same compartment. Positives are assigned to A compartment and negatives to B compartment.

Usage

1

Arguments

pc

numeric, compartment vector (eigenvector)

Value

data.frame where each row corrspond to interval of consecutive same sign values of eigenvector; columns are start, end and compartment

Examples

1
2
3
# make artificial eigenvector
ev <- c(-0.3,-0.5,0.2,0.3,0.4,0.4,-0.5,0.2,0.1,0.3,-0.9,-0.7)
compartment_ranges(ev)

rz6/DIADEM documentation built on Dec. 31, 2019, 3:51 a.m.