Learn R Programming

seqRFLP (version 1.0.1)

read.phy: Read phylip file

Description

Function to read phylip file.

Usage

read.phy(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 phylip file from a specified file path (usually local machine) or URL.

References

None.

See Also

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

Examples

Run this code
##### read.phy() example
data(fil.phy)
writeLines(fil.phy, "example.phy")
phy <- read.phy("example.phy")
as.fasta(phy)
unlink("example.phy")

Run the code above in your browser using DataLab