| WriteTntCharacters {TreeTools} | R Documentation |
Write morphological character matrix to TNT file
WriteTntCharacters( dataset, filepath = NULL, comment = "Dataset written by `TreeTools::WriteTntCharacters()`", types = NULL, pre = "", post = "" ) ## S3 method for class 'phyDat' WriteTntCharacters( dataset, filepath = NULL, comment = "Dataset written by `TreeTools::WriteTntCharacters()`", types = NULL, pre = "", post = "" ) ## S3 method for class 'matrix' WriteTntCharacters( dataset, filepath = NULL, comment = "Dataset written by `TreeTools::WriteTntCharacters()`", types = NULL, pre = "", post = "" )
dataset |
Morphological dataset of class |
filepath |
Path to file; if |
comment |
Optional comment with which to entitle matrix. |
types |
Optional list specifying where different data types begin.
|
pre, post |
Character vector listing text to print before and after the
character matrix. Specify |
Martin R. Smith (martin.smith@durham.ac.uk)
data('Lobo', package = 'TreeTools')
WriteTntCharacters(Lobo.phy)
# Read with extended implied weighting
WriteTntCharacters(Lobo.phy, pre = 'piwe=10;', post = 'xpiwe=;')
# Write to a file with:
# WriteTntCharacters(Lobo.phy, 'example_file.tnt')