addPartition: Add grouping partition

Description Usage Arguments Value Author(s) Examples

Description

Add a grouping partition either at the leaf or root.

Usage

1
2
addPartition(tree = NULL, grouping, applyTo = "leaf", column = NULL,
  data = NULL)

Arguments

tree

The tree node to which partition should be added.

grouping

The grouping needed to be added. Possible values: all, primary3, greaterThan, coloumn

applyTo

Whether to add new node to the lead or to the root.

column

The column to split if value to Grouping parameter is column.

data

The data to do grouping

Value

a tree with new node attached to the input

Author(s)

thiloshon <thiloshon@gmail.com>

Examples

1
2
3
4
## Not run: 
allGroups <- addPartition(grouping = "all")

## End(Not run)

thiloshon/Biodiversity documentation built on May 20, 2019, 4:07 p.m.