dataR2C {ClustMMDD}R Documentation

Transform a (normal) data frame to be compatible with ClustMMDD main functions

Description

dataR2C(x, ploidy) returns a list.

Usage

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

data(genotype1)
head(genotype1)
genotype2 = cutEachCol(genotype1[, -11], 2)
head(genotype2)
genotype3 = dataR2C(genotype2, ploidy = 2)
head (genotype3$data)
str(genotype3)

[Package ClustMMDD version 1.0.4 Index]