Learn R Programming

quicR (version 2.1.0)

calculate_TtT: Calculate Time to Threshold

Description

Calculates the time required to reach a defined threshold.

Usage

calculate_TtT(data, threshold, start_col = 3)

Value

A vector containing the times to threshold

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.

Examples

Run this code
# This test takes >5 sec
# \donttest{
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)
# }

Run the code above in your browser using DataLab