dataR2C: Transform a (normal) data frame to be compatible with...

Description Usage Arguments Value Author(s) See Also Examples

Description

dataR2C(x, ploidy) returns a list.

Usage

1
dataR2C(x, ploidy = 1)

Arguments

x

A data frame or a matrix with the number of columns equal to number(variables)*ploidy.

ploidy

The number of unordered observations represented by a string in xdata. For example, for genotypic data from diploid individual, ploidy = 2 : two columns for one variable.

Value

A list of elements needed for ClustMMDD main functions :

Author(s)

Wilson Toussile

See Also

cutEachCol in ClustMMDD package.

Examples

1
2
3
4
5
6
7
data(genotype1)
head(genotype1)
genotype2 = cutEachCol(genotype1[, -11], 2)
head(genotype2)
genotype3 = dataR2C(genotype2, ploidy = 2)
head (genotype3$data)
str(genotype3)

ClustMMDD documentation built on May 2, 2019, 2:44 p.m.