The function inflates a data frame based on count values in a vector corresponding the rows.
a matrix or data frame, but can be a vector.
arguments passed to the function
Each rows of the data frame
x will be repeated as many times as the corresponding value in e.g. the vector
times. This function is called internally by the function
A data frame with columns as in the original (
x) and e.g.
sum(times) number of rows.
P\'eter S\'olymos, [email protected]
S\'olymos P. (2008) mefa: an R package for handling and reporting count data. Community Ecology 9, 125–127.
S\'olymos P. (2009) Processing ecological data in R with the mefa package. Journal of Statistical Software 29(8), 1–28. http://www.jstatsoft.org/v29/i08/
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.