calculate_concentration: Calculate concentration.

calculate_concentrationR Documentation

Calculate concentration.

Description

Calculate the concentration in a sample

Usage

calculate_concentration(
  df,
  .model,
  .parameter = "FL2.H",
  .value = "Calc.conc",
  .data = NULL
)

Arguments

df

A tidy data.frame.

.model

An object of class drc with the fitted dose-response model.

.parameter

A character giving the name of column(s) where populations are identified.

.value

A character giving the name of the column to store the calculated concentration

.data

Deprecated. Use df.

Value

The df with the calculated concentration and error added in two columns.

Examples


library(beadplexr)
library(drc)
data(ryegrass)

ryegrass_m <-
  fit_standard_curve(df = ryegrass,
                     .parameter = "rootl",
                     .concentration = "conc")

sample_data <-
  calculate_concentration(df = ryegrass[sample(1:nrow(ryegrass), 5),],
                          .model = ryegrass_m,
                          .parameter = "rootl")

beadplexr documentation built on July 9, 2023, 5:59 p.m.