cutEachCol: Retrieve data from strings in the dataset.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ClustMMDD.R

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

ClustMMDD documentation built on May 30, 2017, 5:45 a.m.

Search within the ClustMMDD package
Search all R packages, documentation and source code