Learn R Programming

treeplyr (version 0.1.7)

filterMatrix: Filter a matrix, returning either all continuous or all discrete characters

Description

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

Usage

filterMatrix(mat, charType, returnType = "discrete")

Arguments

mat

A matrix of data

charType

A vector of character types (perhaps from detectAllCharacters)

returnType

Either discrete or continuous

Value

Matrix with only discrete or continuous characters

Examples

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

Run the code above in your browser using DataLab