write_tnt_matrix: Writes out a morphological TNT data file

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/write_tnt_matrix.R

Description

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

Usage

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

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

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

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_matrix, prune_cladistic_matrix, read_nexus_matrix, safe_taxonomic_reduction, write_nexus_matrix

Examples

1
2
3
4
5
# 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")

Claddis documentation built on Oct. 23, 2020, 8:04 p.m.