View source: R/write_tnt_matrix.R
write_tnt_matrix | R Documentation |
Writes out a morphological data file in Hennig86/TNT format.
write_tnt_matrix(cladistic_matrix, file_name, add_analysis_block = FALSE)
cladistic_matrix |
A cladistic matrix in the format imported by read_nexus_matrix. |
file_name |
The file name to write to. Should end in |
add_analysis_block |
Whether or not to add analysis block (i.e., tree search commands). |
Writes out a TNT (Goloboff et al. 2008; Goloboff and Catalano 2016) data file representing the distribution of discrete morphological characters in a set of taxa. Data must be in the format created by importing data with read_nexus_matrix.
Note that the format can currently deal with continuous characters, sequence (DNA) data, and combinations of these and discrete morphology, but not yet the morphometric format introduced in Goloboff and Catalano (2016).
Graeme T. Lloyd graemetlloyd@gmail.com
Goloboff, P. A. and Catalano, S. A., 2016. TNT version 1.5, including a full implementation of phylogenetic morphometrics. Cladistics, 32, 221-238.
Goloboff, P., Farris, J. and Nixon, K., 2008. TNT, a free program for phylogenetic analysis. Cladistics, 24, 774-786.
write_nexus_matrix
build_cladistic_matrix, compactify_cladistic_matrix, prune_cladistic_matrix, read_nexus_matrix, safe_taxonomic_reduction, write_nexus_matrix
# Write out Michaux 1989 to current working directory:
write_tnt_matrix(cladistic_matrix = michaux_1989, file_name = "michaux_1989.tnt")
# Remove file when finished:
file.remove(file1 = "michaux_1989.tnt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.