View source: R/calcSampleSizes.R
calcSampleSizes | R Documentation |
Function to sample sizes from count or "size" composition data across a set of factors.
calcSampleSizes(dfr, id.value = "count", id.facs = "", verbose = FALSE)
dfr |
- input dataframe with count/abundance data by size and other factors |
id.value |
- name of column in dfr with count (or abundance) values |
id.facs |
- character vector of column names used as factors in calculating the sample sizes |
verbose |
- flag to print diagnostic output to console |
Uses sqldf::sqldf
. Note that sample sizes can be calculated from unnormalized size compositions,
as well as "raw" count data, using this function.
dataframe with sample sizes across a set of factors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.