getDataGroup: Separate data into different groups

Description Usage Arguments Value

View source: R/getDataGroup.R

Description

This function separate the distance between individuals data contained in x accordingly with his class on the variable group.

Usage

1

Arguments

x

A vector with the distance between individuals data. The vector contains the lower triangle of a distance matrix filled in the same order as the lower.tri() function.

group

A factor with the group to which each individual of the distance matrix belong. The order of individuals on this variable must be the same as the distance matrix.

Value

It returns a list with number of elements equal to the number of levels on group, i.e, the number of classes. Each element contains a vector with the distances between individuals belonging to the same group. The elements are stuck on the same order as they were on vector x.


isglobal-brge/co_splicing documentation built on May 18, 2019, 5:50 a.m.