Hi everybody,
I have a longitude vector and a latitude one. Associated to these coordinates, i have a matrix with some data at some coordinates but not all. Lon <- seq(136.025,144.975,0.05) Lat <- rev(seq(-66.975,-65.525,0.05)) dim(z) <- c(Lon,Lat) And i have tried to apply to these data a kriging function. But first i need to reshape these 3 variables to have a dataframe with these and with the corresponding z values with the good coordinates. Do you know how i can do that? And i will have the same problem with the object that return the krige function (gstat package). It gives me a dataframe, and i want a matrix for the prediction. How can i do that, in order to plot it with the image function after. Thanks a lot Karine HEERAH Master 2 , océanographie et environnements marins Université Pierre et Marie Curie (Paris 6) 42 rue Salvador Allende 92000 Nanterre 06.61.50.97.47 _________________________________________________________________ [[elided Hotmail spam]] tre téléphone! [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.