Learn R Programming

strataG (version 2.0.2)

as.multidna: Convert to multidna

Description

Convert a set of sequences to a multidna object if possible.

Usage

as.multidna(x)

Arguments

x

a valid set of sequences: character matrix, list of character vectors, DNAbin object or list of them, '>gtypes object, or '>multidna object.

See Also

sequences, getSequences

Examples

Run this code
# NOT RUN {
# convert list of character vectors
data(dolph.seqs)
list.mdna <- as.multidna(dolph.seqs)
list.mdna

# convert gtypes object
data(dloop.g)
gtype.mdna <- as.multidna(dloop.g)
gtype.mdna

# }

Run the code above in your browser using DataLab