Learn R Programming

MorphoTools2 (version 1.0.2.1)

classif.matrix: Format the Classifdata to Summary Table

Description

The classif.matrix method formats the results stored in classifdata class to a summary classification table of taxa, populations, or individuals.

Usage

classif.matrix(result, level = "taxon")

Value

A data.frame, summary classification table.

Arguments

result

an object of class classifdata.

level

level of grouping of classification matrix, "taxon" (default), populations ("pop"), or individuals ("indiv")

Examples

Run this code
data(centaurea)

centaurea = naMeanSubst(centaurea)
centaurea = removePopulation(centaurea, populationName = c("LIP", "PREL"))

# classification by linear discriminant function
classifRes.lda = classif.lda(centaurea, crossval = "indiv")

# exporting results
classif.matrix(classifRes.lda, level = "taxon")
classif.matrix(classifRes.lda, level = "pop")

Run the code above in your browser using DataLab