scaleSizeComps: Scale "size" compositions in a dataframe by factor...

Description Usage Arguments Details Value

View source: R/scaleSizeComps.R

Description

Function to scale "size" compositions in a dataframe by factor level-specific scalars.

Usage

1
2
scaleSizeComps(dfrZCs, dfrScalars, id.value = "fraction",
  id.scalefacs = "", id.scalevalue = "abundance", verbose = FALSE)

Arguments

dfrZCs

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

dfrScalars

- input dataframe with scalars for a subset of the factors in dfrZCs

id.value

- name of column in dfrZCs with (possibly normalized) count/abundance values

id.scalevalue

- name of column in dfrScalars with the values used to scale the size compositions in dfrZCs

verbose

- flag to print diagnostic output to console

id.scalevars

- character vector of column names of factors for the values in dfrScalars to scale the size compositions in dfrZCs by

Details

The names of columns in dfrScalars used as factors to scale the composition data in dfrZCs should be the same in both datasets.

Value

dataframe with scaled compositions by size (and possibly other factors).


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