Learn R Programming

phylotools (version 0.1.1)

write.mat: Save supermatrix

Description

Save supermatrix to a phylip file

Usage

write.mat(supermat, file = NULL)

Arguments

supermat
Supermatrix as build by function supermat
file
File name to be specified

Value

  • Save supermatrix to phylip file.

Details

None

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

supermat

Examples

Run this code
dir <- system.file("extdata", package = "phylotools")
file.copy(from = dir, to = getwd())
## Supermatrix with "rbcla","matk","trnH-psbA"
supermat1 <- supermat(rbcl = "rbcla.phy", matk = "matK.phy", 
           trn = c("trn1.phy", "trn2.phy","trn3.phy","trn4.phy"))	   
write.mat(supermat1, "result1.phy")

Run the code above in your browser using DataLab