powered by
Pick the value in the center of a square matrix. Auxiliary function to be used by functions called by focal.function().
focal.function()
centervalue(x)
a square matrix
See for example the code of resid.median().
resid.median()
focal.function(), resid.median()
( m <- matrix( round(runif(9,1,10)), ncol=3 ) ) centervalue(m)
Run the code above in your browser using DataLab