R/freundlichanalysis.R

Defines functions freundlichanalysis

Documented in freundlichanalysis

#' Describes the conformity of the results from a static adsorption experiment
#' to the Freundlich Isotherm model
#'
#' @param Ce A numeric vector consisting of equilibrium concentration values
#' @param Qe A numeric vector consisting of quantities adsorbed at equilibrium
#' @return The residuals, y - intercept, coefficient, and correlation factor of
#' the LSRL based on the Temkin isotherm model
#' @examples
#' freundlichanalysis(c(1,2,3,4), c(1,2,3,4))

freundlichanalysis <- function(Ce, Qe)
{
  x2 <- log10(Ce)
  y2 <- log10(Qe)
  fit2 <- lm(y2 ~ x2)
  print("Freundlich Isotherm Analysis")
  print(summary(fit2))
}

Try the SorptionAnalysis package in your browser

Any scripts or data that you put into this service are public.

SorptionAnalysis documentation built on May 2, 2019, 3:50 p.m.