title: How to calculate first derivative of time series
body: <p>I would calculate the first derivative (dpH/dtime) of time series using two variables, <code>time</code> and <code>pH</code>.</p>
  
  <p>Are there any kind of functions to do this in R or should I compute an extra function to do this?</p>