write.nex | R Documentation |
Function to write nexus file to data for, e.g., analysis in MESQUITE, etc.
write.nex(
x,
file,
missing = NULL,
gap = NULL,
mrbayes = FALSE,
ngen = NULL,
phy = NULL,
run = FALSE,
format = c("nexus", "tnt")
)
x |
(required) nexus file ('nex') object |
file |
file patch for exported file |
missing |
character representing missing data |
gap |
character representing incomparable data |
mrbayes |
whether to add mrbayes block to output |
ngen |
number of generations to run in mrbyaes |
phy |
input phylogeny for downstream analysis in mrbayes |
run |
whether to run TNT analysis |
format |
output formate |
an object of class nex
for use in further phenotools
functions
Chad Eliason celiason@fieldmuseum.org
## Not run:
x <- read.nex(file = system.file("extdata", "clarke_2006.nex",
package = "phenotools"))
write.nex(x, file='test.nex')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.