Learn R Programming

TreeSearch (version 0.2.2)

ExtractTaxa: Extract taxa from a matrix block

Description

Extract taxa from a matrix block

Usage

ExtractTaxa(matrixLines, character_num = NULL, session = NULL)

Arguments

matrixLines

lines of a file containing a phylogenetic matrix (see ReadCharacters for expected format)

character_num

Index of character(s) to return. `NULL`, the default, returns all characters.

session

(optionally) a Shiny session with a numericInput named character_num whose maximum should be updated.

Value

Matrix with n rows, each named for the relevant taxon, and c columns, each corresponding to the respective character specified in `character_num`