make_detection_table: Make Detection Data.frame

View source: R/make_report_table.R

make_detection_tableR Documentation

Make Detection Data.frame

Description

Creates a detection data.frame from CQ results, suitable for summary reports.

Usage

make_detection_table(
  df,
  threshold = 40,
  labs = c("ND", "(+)"),
  cq_col = "Cq",
  target_col = "Target",
  filter_col = "FilterID"
)

Arguments

df

data.frame of CQ results, as returned by read_qpcr

threshold

numeric, the threshold CQ, below which is considered a detection

labs

character vector of length 2 corresponding to the string to label for 0 (nondetect) and 1 (detect)

cq_col

string, the name of the CQ column

target_col

string, the name of the target column

filter_col

string, the name of the filter column

Value

data.frame of detection table

Author(s)

Matt Espe


fishsciences/elaphos documentation built on July 9, 2022, 4:37 a.m.