##' Corrects fluorescence for pNA quenching
##'
##' @description Based on the model \deqn{fl_{corrected} = fl_{obs} \times e^{k[{pNA}]}}
##' @param x a data frame containing a column called origFl
##' @param k an exponential coefficient (e^(kx))
##' @return the same data frame with a corrected column called fl
##' @export
correct_for_pNA_quench <- function(x, k) {
# Correct fluorescence values for quenching by pNA
x$origFl <- x$fl
x$fl <- x$fl * exp(k*x$conc.pNA)
x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.