normalizeSizeComps: Normalize "size" compositions across a set of factors

Description Usage Arguments Details Value

View source: R/normalizeSizeComps.R

Description

Function to create a dataframe of "size" compositions normalized (summing to 1) across a set of factors.

Usage

1
2
normalizeSizeComps(dfr, id.size = "size", id.value = "count",
  id.facs = "", id.normfacs = "", verbose = FALSE)

Arguments

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 column names used as factors in calculating the size compositions

id.normfacs

- character vector of column names of factors to normalize the size compositions across (a subset of id.facs)

verbose

- flag to print diagnostic output to console

dfrZ

- input dataframe with count/abundance data by size and other factors

Details

Uses sqldf::sqldf.

Value

dataframe with "size" compositions normalized to sum to 1 across a set of factors.


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