ratio_append_smallest {ratios} | R Documentation |
ratio_append_smallest
Description
The function appends for each row the smallest ratio DT1/DT2 in the column ratio_smallest.
The name of the column which contained the smallest ratio is appended in the column ratio_smallest_Elem.
This function is basically a sub-function for the function Correction.AdheringParticles
.
Usage
ratio_append_smallest(Ratios, vars = NULL)
Arguments
Ratios |
list, data.frame or data.table, which is the output after using the function |
vars |
optional, character vector of column names of DT1 and DT2, default is function |
Value
list with [[1]] being the data set from the input with one column added containing the smallest ratio of all variables given in vars
.
If the input was a list with one element named "ratios_error" the returned list contains a second element [[2]] "ratios_error" also with the appended columns.
Author(s)
Solveig Pospiech
See Also
Other ratio functions: Correction.AdheringParticles
,
preparationDT2
, ratioDT