Learn R Programming

mefa (version 1.1-4)

ivgen: Write Files for IndVal

Description

Writes files in the format suitable for further analysis in the 'IndVal.exe' software by Dufrene and Legendre (1997).

Usage

ivgen(x, cl, k)

Arguments

x
a numeric vector.
cl
a tree object of class hclust.
k
an integer scalar defining the desired number of groups (partitions), used by cutree.

Value

  • Three text files are produced into the working directory. Screen displays info on what to type into the IndVal propts.

References

Dufrene, M. and Legendre, P. 1997. Species assemblages and indicator species: the need for a flexible asymmetrical approach. Ecological Monographs 67, 345--366. IndVal homepage (with errata to the atricle) at http://biodiversite.wallonie.be/outils/indval/home.html

See Also

cutree, hclust

Examples

Run this code
x <- matrix(rpois(24,1),6,4)
cl <- hclust(dist(x))
plot(cl)
ivgen(x, cl, 3)

Run the code above in your browser using DataLab