X.to.f: Data transformation: from species abundance data to species...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function is to convert a vector of species abundance data to a vector of species frequency counts data.

Usage

1
X.to.f(X)

Arguments

X

A vector of species abundance data.

Value

Species frequency counts is returned.

Author(s)

Youhua Chen & Tsung-Jen Shen

See Also

f.to.X

Examples

1
2
3
4
5
6
7
8
9
## As an example, Herpetological assemblage data are used here.		
data(HerpetologicalData)
## two columns represent two samples of species abundance data
X.merge = HerpetologicalData
## the first column is treated as the original sample
X.col1 = X.merge[,1]
Xi = X.col1
## convert species abundance data to species frequency counts data
X.to.f(Xi)	

Example output

  [1] 11 10  6  6  0  0  2  2  2  0  3  0  0  0  0  1  0  1  0  0  0  0  0  0  0
 [26]  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0
 [51]  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
 [76]  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
[101]  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0
[126]  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0
[151]  0  0  0  0  0  0  0  0  1

RSE documentation built on May 2, 2019, 5:58 a.m.