as.multidna: Convert to multidna

View source: R/as.multidna.R

as.multidnaR Documentation

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.

...

arguments to pass to getSequences if x is a gtypes object.

Author(s)

Eric Archer eric.archer@noaa.gov

See Also

getSequences

Examples

# 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


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.