as.memb: Turns into membership matrix

View source: R/as.memb.R

as.membR Documentation

Turns into membership matrix

Description

Attempts to turn its cluster vector argument into a membership matrix

Usage

as.memb(cluster)

Arguments

cluster

A vector indicating the hard membership of each object in x to a set of groups. Can contain NA values.

Value

An matrix with as many rows as the length of cluster and as many columns as different cluster levels. NA values will have zero membership to all clusters

Author(s)

Miquel De Cáceres, CREAF.

See Also

vegclust, vegclass

Examples

as.memb(factor(c(1,2,NA)))

emf-creaf/vegclust documentation built on July 27, 2024, 7:32 a.m.