createGrouping: Creating a Taxa Table as Input to Other Functions in package...

Description Usage Arguments See Also Examples

View source: R/createGrouping.R

Description

By giving percent or count, the groupings are created from nodes showing the percent or count of concordances above percent or count, respectively, and returns a data.frame that can be used directly as taxa in functions cladeFilter and backboneBP. Also can specify the nodes to produce groupings by giving nodes directly.

Usage

1
createGrouping(concor, percent = 0.5, count = NULL, bp = NULL, nodes = NULL)

Arguments

concor

an object from "concor.node".

percent

a numeric between 0 to 1. The groupings are created from nodes showing the percent of concordances above percent. Defaults to 0.5.

count

a numeric or integer higher than or equals to 1. The groupings are created from nodes showing the count of concordances above count. Defaults to NULL and uses percent.

bp

a numeric specifying with which bp the result in concor is used to create taxa. Defaults to NULL and the first result in concor is used.

nodes

a numeric vector specifying the node(s) to create taxa, regardless of percent and count. Defaults to NULL.

See Also

concor.node

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(Brassidata)
trees <- Brassidata$trees
ref <- Brassidata$ref
concor.n<-concor.node(ref = ref,trees = trees, bp = c(0,30,50), getTreeNames = FALSE)
# to get groupings from nodes with >70% tree in concordance
taxa <- createGrouping(concor.n, percent = 0.7)

## End(Not run)

Chien-Hsun/rePhylo documentation built on May 19, 2020, 3:15 a.m.