calcSampleSizes: Calculate sample sizes from count or "size" composition data...

View source: R/calcSampleSizes.R

calcSampleSizesR Documentation

Calculate sample sizes from count or "size" composition data across a set of factors

Description

Function to sample sizes from count or "size" composition data across a set of factors.

Usage

calcSampleSizes(dfr, id.value = "count", id.facs = "", verbose = FALSE)

Arguments

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

Details

Uses sqldf::sqldf. Note that sample sizes can be calculated from unnormalized size compositions, as well as "raw" count data, using this function.

Value

dataframe with sample sizes across a set of factors.


wStockhausen/wtsSizeComps documentation built on March 17, 2024, 3:09 p.m.