concat: Merge a list of nexus files

View source: R/concat.R

concatR Documentation

Merge a list of nexus files

Description

A function that combines nexus datasets

Usage

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

## 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. 16, 2024, 8:31 a.m.