Learn R Programming

apex (version 1.0.4)

multidna2multiphyDat: Conversions between multidna and multiphyDat

Description

The functions multidna2multiphyDat and multiphyDat2multidna are used to convert data between '>multidna and '>multiphyDat classes.

Usage

multidna2multiphyDat(x)

multiphyDat2multidna(x)

Arguments

x

a '>multidna or '>multiphyDat object.

See Also

Examples

Run this code
# NOT RUN {
## simple conversion with nicely ordered output
data(woodmouse)
genes <- list(gene1=woodmouse[,1:500], gene2=woodmouse[,501:965])
x <- new("multidna", genes)
x

## conversion multidna -> multiphyDat
y <- multidna2multiphyDat(x)
y

## check round trip
identical(x, multiphyDat2multidna(y))

# }

Run the code above in your browser using DataLab