Learn R Programming

Claddis (version 0.7.0)

write_tnt_matrix: Writes out a morphological TNT data file

Description

Writes out a morphological data file in Hennig86/TNT format.

Usage

write_tnt_matrix(cladistic_matrix, file_name, add_analysis_block = FALSE)

Arguments

cladistic_matrix

A cladistic matrix in the format imported by read_nexus_matrix.

file_name

The file name to write to. Should end in .tnt.

add_analysis_block

Whether or not to add analysis block (i.e., tree search commands).

Author

Graeme T. Lloyd graemetlloyd@gmail.com

Details

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).

References

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.

See Also

write_nexus_matrix

build_cladistic_matrix, compactify_cladistic_matrix, prune_cladistic_matrix, read_nexus_matrix, safe_taxonomic_reduction, write_nexus_matrix

Examples

Run this code

# 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")

Run the code above in your browser using DataLab