Learn R Programming

RSE (version 1.3)

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

Description

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

Usage

X.to.f(X)

Arguments

X

A vector of species abundance data.

Value

Species frequency counts is returned.

See Also

f.to.X

Examples

Run this code
# NOT RUN {
## 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)	
# }

Run the code above in your browser using DataLab