aggregateByLabel: Label a list of int attractors and agregate by label

Description Usage Arguments Value

View source: R/BNP_Dataframe.R

Description

Takes a dataframe where the rownames are states in integer format (cycles are strings joined with sep). The function labels the states and agregates the dataframe using label. Agregate splits the data into subsets by label, computes summary statistics for each, and returns the result in a convenient form. See aggregate

Usage

1
aggregateByLabel(df, node.names, label.rules, sep = "/")

Arguments

df

dataframe with states as rownames

node.names

node names of the state, the length must be the same that the state's

label.rules

dataframe with labels (1st col) and rules (2nd col), if more than one rule is true all labels are appendedl the node names present in the rules must be in node.names

sep

string to join elements with length > 1, default "/"

Value

Dataframe, each row corresponds to a label and each column corresponds to a property of the original dataframe


mar-esther23/boolnet-perturb documentation built on April 21, 2020, 9:11 a.m.