trim_both_ends: Trim both ends of alignment

Description Usage Arguments Value Examples

Description

Trim both ends of alignment

Usage

1
trim_both_ends(alignment)

Arguments

alignment

matrix of class DNAbin

Value

matrix of class DNAbin

Examples

1
2
3
4
5
library(ape)
dna_mat <- matrix(rep(c("n", "t", "a", "n"), 2), 2, 4, byrow = TRUE)
dna_mat <- as.DNAbin(dna_mat)
dna_mat
trim_both_ends(dna_mat)

joelnitta/baitfindR documentation built on May 7, 2020, 6:21 p.m.