Description Usage Arguments Value
View source: R/BNP_Dataframe.R
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
1 | aggregateByLabel(df, node.names, label.rules, sep = "/")
|
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 "/" |
Dataframe, each row corresponds to a label and each column corresponds to a property of the original dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.