write_nexus_matrix: Writes out a morphological #NEXUS data file

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

View source: R/write_nexus_matrix.R

Description

Writes out a morphological data file in #NEXUS format.

Usage

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

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.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

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

Examples

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

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