cutEachCol {ClustMMDD} | R Documentation |
It is assumed that each string in the data frame submitted represents a set of ploidy unordered observations from the same set of levels. For example, for ploidy = 2, the data "101102" represents "101", "102".
cutEachCol(xdata, ploidy)
xdata |
A data.frame or a matrix of strings. |
ploidy |
The number of unordered observations represented by a string in |
A matrix of strings compatible with the main functions of ClustMMDD
. The number of columns in the outcome data frame is equal to
ploidy*ncol(xdata).
Wilson Toussile
dataR2C
for ClustMMDD
data format.
data(genotype1) head(genotype1) genotype2 = cutEachCol(genotype1[,-11], ploidy = 2) head(genotype2)