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")

ropensci/treedata.table documentation built on Sept. 12, 2021, 6:23 p.m.