Calculates the bacterial background area from the direct measurement of the background peak. For setting this parameter manually, please use set_background.

calculate_background(
  data,
  area,
  criteria = name %in% c("background", "Background"),
  update_category = "background",
  quiet = FALSE
)

Arguments

data

(can be a grouped_by data set)

area

the area column

criteria

the expression used to find the background analyses

update_category

value to update the found records category to (pass in NULL if no update of category is desired)

Value

adds the parameter column p.bgrd

See also