Dear Reasearchers

I am try to use "smooth.spline" with a X,Y,Z points file


smooth.spline(x, y = NULL, w = NULL, df, spar = NULL,
              cv = FALSE, all.knots = FALSE, nknots = NULL,
              keep.data = TRUE, df.offset = 0, penalty = 1,
              control.spar = list())

where:
xa vector giving the values of the predictor variable, or a list or a
two-column matrix specifying x and y.yresponses. If y is missing, the
responses are assumed to be specified by x.
mydata
str(mydata)
'data.frame':   135660 obs. of  3 variables:
 $ X: num  1666025 1666025 1666025 1666026 1666026 ...
 $ Y: num  7114025 7114026 7114028 7114026 7114027 ...
 $ H: num  270 270 270 270 270 ...

myxy <- as.matrix(data.frame(mydata$X,mydata$Y))
myvalue <- list(mydata$H)

cc <- smooth.spline(myxy,myvalue)
Errore in xy.coords(x, y) : 'x' and 'y' lengths differ

I have this type of error. I tried the solutions inside the mail-list
and help but I can not processing smooth.spline

thanks and sorry for the disturb
gianni

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to