balance.training.data: balancing the training dataset, so that there are equal...

Description Usage Arguments Details Examples

Description

this is a short function for balancing the training data

Usage

1
balance.training.data(x,repncolumnname)

Arguments

x

trainning dataset as a data frame. should include a column called "model.id", and the repncolumname specified in the argument.

repncolumnname

a column in the input data frame indicating which rows (gene trees) belong to the same species tree, default to 'repn'

Details

For each species tree, equal number of rows are selected for each model in (model.id)

Examples

1
2
3
4
5
6
7
8
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x)
{
  }

huatengh/Classiphy documentation built on May 21, 2019, 7:53 a.m.