Description Usage Arguments Value Author(s) See Also Examples
This function is to convert a vector of species abundance data to a vector of species frequency counts data.
1 | X.to.f(X)
|
X |
A vector of species abundance data. |
Species frequency counts is returned.
Youhua Chen & Tsung-Jen Shen
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)
|
[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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.