Learn R Programming

STMedianPolish (version 0.1)

ConstructMPst: Construct Spatio - temporal regular data.

Description

Create an spatio - temporal object with regular data to order employing median polish technique.

Usage

ConstructMPst(valuest,time,pts,Delta)

Arguments

valuest
it's a data.frame in which different columns refer to different locations, and each row reflects a particular observation time.
time
indicate the time of valuest, the intervals of time must be regular.
pts
it's a data.frame that hold three dimensions spatial coordinates x, y and z.
Delta
vector with number of divisions of each spatial direction. c(Delta x, Delta y, Delta z).

Value

An object of class ConstructMPst with the following list of components:
results
average value of the set of stations into unity spatio - temporal defined for delta.
Value
array with the results organized in dimensions defined in Delta.
valuest
valuest
pts
pts
time
time
Delta
Delta

Details

Table composed for coordinates of center and average of position of stations for unit tridimensional array in space - time, in which show a average value of site.

References

Berke, O. (2001). Modified median polish kriging and its application to the wolfcamp - aquifer data. Environmetrics, 12(8):731-748.[link]

Examples

Run this code
## Not run:
data(Metadb)
x<-matrix(0,1,37)
for(i in 1:37){
 x[,i] <- 2007 + (seq(0, 36)/12)[i]
}
x<-as.Date (as.yearmon(x), frac = 1)
time = as.POSIXct(x, tz = "GMT")

MPST<-ConstructMPst(Metadb[,-c(1:4)],time,pts=Metadb[,2:4],Delta=c(7,6,5))
## End(Not run)

Run the code above in your browser using DataLab