concat: Merge a list of nexus files

Description Usage Arguments Value Author(s) Examples

View source: R/concat.R

Description

A function that combines nexus datasets

Usage

1
concat(x, taxa = NULL)

Arguments

x

(required) a list of 'nex' objects to merge

taxa

a character vector of names of taxa to include in concatenated nexus file (optional)

Value

an object of class 'nex' for use in further 'phenotools' functions

Author(s)

Chad Eliason celiason@fieldmuseum.org

Examples

1
2
3
4
5
6
7
## Not run: 
x <- read.nex(system.file("extdata", "clarke_2006.nex", package = "phenotools"))
y <- read.nex(system.file("extdata", "nesbitt_2015.nex", package = "phenotools"))
xy <- concat(list(x, y), taxa = c('Anas_platyrhynchos', 'Gallus_gallus', 'Crypturellus_undulatus'))
xy

## End(Not run)

celiason/phenotools documentation built on Sept. 12, 2019, 6:49 p.m.