Retrieve data from strings in the dataset.

Share:

Description

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".

Usage

1
cutEachCol(xdata, ploidy)

Arguments

xdata

A data.frame or a matrix of strings.

ploidy

The number of unordered observations represented by a string in xdata. For example, for genotypic data from diploid individual, ploidy = 2 : a data such as "ab" represents {"a", "b"} observed alleles.

Value

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).

Author(s)

Wilson Toussile

See Also

dataR2C for ClustMMDD data format.

Examples

1
2
3
4

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.