View source: R/rebinSizeComps.R
rebinSizeComps | R Documentation |
Function to re-bin "size" compositions in a dataframe to all given "size" values (and possibly all factor level combinations).
rebinSizeComps(
dfr,
id.size = "size",
id.value = NULL,
id.facs = "",
cutpts = NULL,
truncate.low = TRUE,
truncate.high = FALSE,
expandToAllFactorCombos = TRUE,
verbose = FALSE
)
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 to use for re-binning size compositions |
truncate.low |
-flag to truncate size compositions below the minimum size (TRUE) or include in smallest size bin (FALSE) |
truncate.high |
- flag to truncate size compositions above the maximum size (TRUE) or include in largest size bin (FALSE) |
expandToAllFactorCombos |
- flag to expand to all factor combinations (TRUE) or only observed combinations (FALSE) |
verbose |
- flag to print diagnostic output to console |
Non-standard column names SHOULD NOT be back-quoted.
dataframe with compositions by size (and possibly other factors) expanded to all sizes by either unique or all factor combinations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.