filterMatrix {treedata.table}R Documentation

Filter a character matrix, returning either all continuous or all discrete characters

Description

This function filters a character matrix based on continuous (e.g., with values 2.45, 9.35, and so on) or discrete characters (e.g., with values blue, red, yellow).

Usage

filterMatrix(mat, returnType = "discrete")

Arguments

mat

A character matrix of class data.frame

returnType

Either discrete or continuous

Value

data.frame with only discrete (default) or continuous characters

Examples

data(anolis)
filterMatrix(anolis$dat, "discrete")

[Package treedata.table version 0.1.0 Index]