Learn R Programming

pirouette (version 1.6.9)

get_alignment_n_taxa: Get the number of taxa of an alignment

Description

Get the number of taxa of an alignment

Usage

get_alignment_n_taxa(alignment, verbose = FALSE)

Value

the number of taxa

Arguments

alignment

a DNA alignment, of class DNAbin

verbose

if TRUE, show more output

Author

Richèl J.C. Bilderbeek

Examples

Run this code
get_alignment_n_taxa(
  alignment = ape::as.DNAbin(
    x = list(species_1 = strsplit("aaaa", split = "")[[1]])
  )
)

Run the code above in your browser using DataLab