Learn R Programming

snapKrig (version 0.0.2)

length.sk: The number of grid-points

Description

Returns the total number of points in the grid, which is the product of the number of y and x grid lines (gdim).

Usage

# S3 method for sk
length(x)

Value

integer

Arguments

x

a sk object

Examples

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

Run the code above in your browser using DataLab