View source: R/write_nexus_matrix.R
write_nexus_matrix | R Documentation |
Writes out a morphological data file in #NEXUS format.
write_nexus_matrix(cladistic_matrix, file_name)
cladistic_matrix |
The cladistic matrix in the format imported by read_nexus_matrix. |
file_name |
The file name to write to. Should end in |
Writes out a #NEXUS (Maddison et al. 1997) data file representing the distribution of characters in a set of taxa. Data must be in the format created by importing data with read_nexus_matrix.
Graeme T. Lloyd graemetlloyd@gmail.com
Maddison, D. R., Swofford, D. L. and Maddison, W. P., 1997. NEXUS: an extensible file format for systematic information. Systematic Biology, 46, 590-621.
write_tnt_matrix
build_cladistic_matrix, compactify_cladistic_matrix, prune_cladistic_matrix, read_nexus_matrix, safe_taxonomic_reduction, write_tnt_matrix
# Write out Michaux 1989 to current working directory:
write_nexus_matrix(cladistic_matrix = michaux_1989, file_name = "michaux_1989.nex")
# Remove file when finished:
file.remove(file1 = "michaux_1989.nex")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.