classif.matrix: Format the Classifdata to Summary Table

View source: R/classifMatrix.R

classif.matrixR Documentation

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

Arguments

result

an object of class classifdata.

level

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

Value

A data.frame, summary classification table.

Examples

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

MorphoTools2 documentation built on March 7, 2023, 6:18 p.m.