[R] How to "smoothen" a geodata set in R
Tariq
tariqdaudi at gmail.com
Tue Jul 12 19:09:32 CEST 2011
Hello, I'm new to this list. Sorry if my question or parts of it already came
up before.
For my research in geostatistics, I am working with large sets of data in R
(basically large matrices containing discrete x and y coordinates and a
value for a certain parameter). These sets are obtained by kriging. The
operation I'd like to perform is smoothen the output data set. I want to do
it by adding each data point and its 8 surrounding points and dividing this
by nine (gives an average), and then replacing each element in the matrix
with the result.
Question 1: is there a way to address the parameter value of a single
element (for example, the value for element [x=452, y=682] inside the
matrix) and perform an operation on it in R?
Question 2: is there a way to programm R into a loop, so that the same
operation can be performed on all elements inside the matrix?
Question 3: is it a problem if my data is geodata (made with the geoR
library)?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-smoothen-a-geodata-set-in-R-tp3662902p3662902.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list