bins: Outputs bins from a partition matrix, V, or from a list of...

View source: R/bins.R

binsR Documentation

Outputs bins from a partition matrix, V, or from a list of groups G and their full set.

Description

Outputs bins from a partition matrix, V, or from a list of groups G and their full set.

Usage

bins(V = NULL, G = NULL, set = NULL)

Arguments

V

Signed partition matrix, need not be normalized, but can be an ilr basis.

G

If V is not input, can instead input a list of groups, G, whose elements are all contained in the input set

set

If V is not input, set determines the full set of elements of which G is sub-groups and of which bins are constructed.

Value

a list of bins - list of elements corresponding to minimal, unsplit groups given the partition or the group list.

Examples

V <- matrix(c(1,1,-1,-1,1,-1,0,0),byrow=FALSE,ncol=2)
bins(V)

set=1:10
G <- list(c(1,2),c(1,2,3,4),c(8))
bins(G=G,set=set)

reptalex/phylofactor documentation built on Feb. 28, 2024, 3:19 p.m.