Learn R Programming

vegclust (version 2.0.0)

as.memb: Turns into membership matrix

Description

Attempts to turn its cluster vector argument into a membership matrix

Usage

as.memb(cluster)

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

Arguments

cluster

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

Author

Miquel De Cáceres, Forest Science Center of Catalonia.

See Also

vegclust, vegclass

Examples

Run this code
as.memb(factor(c(1,2,NA)))

Run the code above in your browser using DataLab