[R] question about calculating derivatives for vectors
Mingwei Min
mm809 at cam.ac.uk
Mon Mar 28 18:07:53 CEST 2011
Hi all,
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.
For example, vectors like this
x<-c(0.997549748, 0.98039798, 0.963097713, 0.930576181, 0.907484407,
0.875705376, 0.826477576, NA, 0.772794773)
Thanks in advance.
Mingwei
More information about the R-help
mailing list