treedata.table (version 0.1.0)

filterMatrix: 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

Run this code
# NOT RUN {
data(anolis)
filterMatrix(anolis$dat, "discrete")
# }

Run the code above in your browser using DataCamp Workspace