Learn R Programming

prabclus (version 2.3-4)

crmatrix: Region-wise cluster membership

Description

Produces a matrix with clusters as rows and regions as columns, indicating how many species present in a region belong to the clusters

Usage

crmatrix(x,xc,percentages=FALSE)

Value

A clusters time regions matrix as explained above.

Arguments

x

object of class prab as generated by prabinit. Presence-absence data to be analyzed.

xc

object of class prabclust or comprabclust as generated by prabclust or hprabclust. The clustering.

percentages

logical. If TRUE, the output matrix will give the proportion of species from a certain region in the cluster.

Examples

Run this code
# \donttest{
  options(digits=3)
  data(kykladspecreg)
  data(nb)
  set.seed(1234)
  x <- prabinit(prabmatrix=kykladspecreg, neighborhood=nb)
  xc <- prabclust(x)

  crmatrix(x,xc)
  crmatrix(x,xc, percentages=TRUE)
# }

Run the code above in your browser using DataLab