rescale_det_limit: Rescale det_limit

View source: R/utils.R

rescale_det_limitR Documentation

Rescale det_limit

Description

Rescale a det_limit given on the same scale as the compositional columns.

Usage

rescale_det_limit(data, comp_labels, det_limit)

Arguments

data

Input data.

comp_labels

The labels of the compositional columns.

det_limit

Detection limit if zeroes are to be imputed. This is needed when rounded_zeroes is TRUE. It should be the minimum measurable value in the compositional columns of data, and should be on the same scale as the (input) compositional columns. If rounded_zeroes is TRUE and there are zero values in the data, it throws an error. If the compositional columns do not have a constant sum, it also throws an error, as it cannot be automatically rescaled. Embedded zero imputation is for convenience only. It may be advisable to perform zero imputation prior to working with the data, particularly in more complex cases.


OxWearables/epicoda documentation built on Dec. 7, 2022, 9:07 p.m.