filterMatrix: Filter a character matrix, returning either all continuous or...

Description Usage Arguments Value Examples

View source: R/detectCharacterType.R

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

1
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

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

treedata.table documentation built on Oct. 23, 2020, 5:50 p.m.