calculate_concentration | R Documentation |
Calculate the concentration in a sample
calculate_concentration(
df,
.model,
.parameter = "FL2.H",
.value = "Calc.conc",
.data = NULL
)
df |
A tidy data.frame. |
.model |
An object of class |
.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 |
The df
with the calculated concentration and error added in two columns.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.