Learn R Programming

seqRFLP (version 1.0.1)

as.fasta: Coerce "phy" or "nex" objects to fasta format.

Description

This function could be used to coerce "phy", "nex" to "fasta" format.

Usage

as.fasta(x)

Arguments

x
Objects from read.phy() or read.nxs().

Value

fasta object.

Details

The input data must be either in class "phy", "nxs", "fasta". This means that it must be the object from read.phy() or read.nxs() etc.

References

None.

Examples

Run this code
data(fil.nxs)
nxs <- as.fasta(fil.nxs)
nxs

data(fil.phy)
phy <- as.fasta(fil.phy)
phy

Run the code above in your browser using DataLab