Learn R Programming

phylotools (version 0.1.2)

phy2dat: Convert phylip file to dataframe

Description

Convert phylip file to dataframe

Usage

phy2dat(x)

Arguments

x
Vector of phylip format generated by Clustal software.

Value

data frame with the first column the names of the input sequences, and the sequences in the second column.

Details

Convert phylip file to dataframe. The phylip format vector can be read from local files via read.phylip, or even readLines.

References

Kress W., Erickson D., Jones F., Swenson N., Perez R., Sanjur O., Bermingham E., Plant DNA barcodes and community phylogeny of a tropical forest dynamics plot in Panama. Proceedings of the National Academy of Sciences of the United States of America. 2009 18621-18626

See Also

See Also read.phylip

Examples

Run this code

##phy2dat example ########
dir <- system.file("extdata", package = "phylotools")
setwd(dir)
test <- read.phylip("rbcla.phy")
phy2dat(test)

Run the code above in your browser using DataLab