[R] Derivation of data points

jessica.gervais at tudor.lu jessica.gervais at tudor.lu
Wed Jan 16 11:35:15 CET 2008

Dear All,

I would like to make the derivation of a points.
I tried to use D1tr (linear interpolation).
I also tried to used D1ss (spline interpolation) but I do not realy know
how to choose the smothing parameter the best.
D1ss(x, y, xout = x, spar.offset = 0.1384, spl.spar=NULL)

Here is an example of data I would like to derive


D1ss(x, y, xout = x, spar.offset = 0.1384, spl.spar=NULL)

D1ss(x, y, xout = x, spar.offset = 0.1384, spl.spar=NULL)
Error in smooth.spline(x, y) :
  NA/NaN/Inf in foreign function call (arg 4)

Is there a way to return NA for points where there is an NA value as input

Could anyone give me some advices how to choose values for these
"spar.offset" and "spl.spar" parameters ?

Many thanks in advance,



Jessica Gervais
Tel: +352- 425991-628
Mail: jessica.gervais at tudor.lu

Resource Centre for Environmental Technologies,
Public Research Centre Henri Tudor,
Technoport Schlassgoart,
66 rue de Luxembourg,
P.O. BOX 144,
L-4002 Esch-sur-Alzette, Luxembourg

More information about the R-help mailing list