gen.DNAbin: A function to generate a DNAbin object

View source: R/gen.DNAbin.R

gen.DNAbinR Documentation

A function to generate a DNAbin object

Description

A function that uses information in a dataframe with data obtained from BOLD to genereate a DNAbin object. The DNAbin object returned can be used with the 'ape' package.

Usage

gen.DNAbin(x.df = NULL, alignment = NULL, labels.headers = c(...))

Arguments

x.df

A dataframe with data obtained from BOLD.

alignment

Specify the alignment type.

labels

The column names of the data frame to use to create the label.

Value

a DNAbin object.

Author(s)

Nishan Mudalige

Examples

example.df <- get.public(container="PRT")

example.DNAbin <- gen.DNAbin(example.df, alignment="COI-5P_nucraw", labels=c("processid","taxon"))

nishanmudalige/BOLD.R documentation built on July 15, 2022, 3:33 a.m.