Description Usage Arguments Details Value Author(s)
Read a set of files containing individual trees and return a multiPhylo object with all trees in the files. The set of files to be read can either be passed explicitly as a character vector, or through a combination of a set of directories and a file extension which is used to construct a wildcard expression which will match files with the extension you specify..
1 | load.trees(paths, extension = ".tre", use.file.names = TRUE)
|
paths |
If estension is NULL, a list of files containing trees. Otherwise, the prefix for a wildcard expression. |
extension |
If NULL, the paths are passed unaltered to read.tree. Otherwise, a suffix (file extension) for the wildcard expression. |
use.file.names |
Set the tree names using the file names. Will only work properly if each file contains a single tree. |
The behavior is determined by the extension parameter: If it is NULL, then the paths supplied are passed unaltered to the ape::read.tree function. If the parameter is not null, then the paths are altered by calling Sys.glob with wildcard expression "paths*extension".
A multiPhylo object.
Grady Weyenberg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.