Learn R Programming

Claddis (version 0.7.0)

write_nexus_matrix: Writes out a morphological #NEXUS data file

Description

Writes out a morphological data file in #NEXUS format.

Usage

write_nexus_matrix(cladistic_matrix, file_name)

Arguments

cladistic_matrix

The cladistic matrix in the format imported by read_nexus_matrix.

file_name

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

Author

Graeme T. Lloyd graemetlloyd@gmail.com

Details

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.

References

Maddison, D. R., Swofford, D. L. and Maddison, W. P., 1997. NEXUS: an extensible file format for systematic information. Systematic Biology, 46, 590-621.

See Also

write_tnt_matrix

build_cladistic_matrix, compactify_cladistic_matrix, prune_cladistic_matrix, read_nexus_matrix, safe_taxonomic_reduction, write_tnt_matrix

Examples

Run this code

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

Run the code above in your browser using DataLab