[R] question about calculating derivatives for vectors

Ben Bolker bbolker at gmail.com
Mon Mar 28 23:29:41 CEST 2011


Mingwei Min <mm809 <at> cam.ac.uk> writes:

> I am trying to calculating derivatives for vectors using R. I have a
 numerical vector, which is in time series manner and contains "NA"s. I
 want to know the changing rate throughout the whole time range. I am
 wondering if there is function in R can do this. In R references I
 only found functions for calculating derivatives of expressions.
[attribution pruned to fool Gmane]

?diff   ?



More information about the R-help mailing list