derivative: Derivative Titration Curves

Description Usage Arguments Value Author(s) Examples

View source: R/derivative.R

Description

Given a two-column data frame, with volumes of titrant in the first column and pH, pAnalyte, pTitrant, pMetal, or solution potential in the second column, this function calculates and plots the associated first-derivative and second derivative titration curves.

Usage

1

Arguments

df

A data frame with two columns; the first column must contain the volumes of titrant and the second column must contain values for the associated pH, pAnalyte, pTitrant, pMetal, or solution potential. A typical object to pass to this function is that created by the other functions in this package; however, the data frame can be one prepared separately, provided that it matches the structure defined above.

plot

Logical; if TRUE, plots the titration curve.

...

Additional arguments to pass to plot() function.

Value

A list that consists of two data frames, one for the first derivative titration curve and one for the second derivative titration curve.

Author(s)

David T. Harvey, DePauw University. harvey@depauw.edu

Examples

1
2
3
4
### Derivative weak acid/strong base titration curves
ab = wa_sb()
ex16 = derivative(ab)
str(ex16)

dtharvey/titrationCurves documentation built on March 8, 2020, 4:50 a.m.