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

View source: R/getUniqueFZs.R

getUniqueFZsR Documentation

Determine the unique factor and size combinations from a dataframe of "size" compositions

Description

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

Usage

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.

Value

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

Note

Non-standard column names SHOULD NOT be backquoted.


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