getUniqueFZs: Determine the unique factor and size combinations from a...

Description Usage Arguments Details Value

View source: R/getUniqueFZs.R

Description

Function to determine the unique factor and size combinations from a dataframe of "size" compositions.

Usage

1
2
getUniqueFZs(dfr, id.size = "size", id.value = NULL, id.facs = "",
  cutpts = NULL, expandToAllFactorCombos = FALSE, verbose = verbose)

Arguments

dfr

- input dataframe with composition data by "size" and other factors

id.size

- name of column in dfr with "size" data

id.value

- name of column in dfr with count (or abundance) values

id.facs

- character vector of factor column names

cutpts

- vector of cutpoints for size compositions (or NULL to extract from dfr)

expandToAllFactorCombos

- flag to expand to all factor combinations (TRUE) or only observed combinations (FALSE)

verbose

- flag to print diagnostic output to console

Details

If id.facs is blank, all columns other than the size and value columns are assumed to be factor columns.

Non-standard column names SHOULD NOT be backquoted.

Value

dataframe with compositions by size (and possibly other factors) expanded to all sizes.


wStockhausen/wtsSizeComps documentation built on Aug. 19, 2018, 3:45 a.m.