Learn R Programming

seqRFLP (version 1.0.1)

read.nxs: Read nexus file

Description

Function to read nexus file.

Usage

read.nxs(fil = NULL)

Arguments

fil
A character string naming the file path.

Value

Returns a nexus "nxs" object stored as a vector of character strings.

Details

Read nexus file from a specified file path (usually local machine) or URL.

References

None

See Also

See Also read.phy, read.fasta for importing data from other data types.

Examples

Run this code

#####
##### read.nxs() example
data(fil.nxs)
writeLines(fil.nxs, "example.nxs")
nxs <- read.nxs("example.nxs")
as.fasta(nxs)
unlink("example.nxs")

Run the code above in your browser using DataLab