The function inflates a data frame based on count values in a vector corresponding the rows.
Usage
inflate(x, by)
Arguments
x
a matrix or data frame, but can be a vector.
by
a vector containing positive (non zero) real numbers.
Value
A data frame with columns as in the original (x) and sum(by) number of rows.
encoding
UTF-8
Details
Each rows of the data frame x will be repeated as many times as the corresponding value in the vector by. This function is called internally by the function stcs.
References
Sólymos{Solymos} P. 2008. mefa: an R package for handling and reporting count data. Community Ecology 9, 125--127.