Learn R Programming

snapKrig (version 0.0.2)

mean.sk: Calculate the mean value in a grid

Description

This calculates the mean over all layers (if any)

Usage

# S3 method for sk
mean(x, ...)

Value

numeric

Arguments

x

a sk object

...

further arguments to default mean method

Examples

Run this code
g = sk_validate(list(gval=stats::rnorm(4^2), gdim=4, gres=0.5))
mean(g) == mean(g[])

Run the code above in your browser using DataLab