calculate_TtT: Calculate Time to Threshold

View source: R/calculate_TtT.R

calculate_TtTR Documentation

Calculate Time to Threshold

Description

Calculates the time required to reach a defined threshold.

Usage

calculate_TtT(data, threshold, start_col = 3)

Arguments

data

A dataframe containing real-time RT-QuIC data.

threshold

A numeric value defining the threshold.

start_col

The column containing the starting position of the real-time data.

Value

A vector containing the times to threshold

Examples

# This test takes >5 sec

file <- system.file(
  "extdata/input_files",
  file = "test2.xlsx",
  package = "quicR"
)
df_ <- get_real(file)[[1]] |>
  quicR::transpose_real() |>
  quicR::normalize_RFU(transposed = TRUE)
calculate_TtT(df_, threshold = 2)



quicR documentation built on April 3, 2025, 11:20 p.m.