Learn R Programming

snapKrig (version 0.0.2)

as.double.sk: Coerce grid values to numeric (double type)

Description

This also adds support for as.numeric

Usage

# S3 method for sk
as.double(x, ...)

Value

an "sk" object with numeric data values

Arguments

x

a sk object

...

further arguments to as.double

Examples

Run this code
g = sk_validate(list(gval=sample(c(FALSE, TRUE), 4^2, replace=TRUE), gdim=4, gres=0.5))
g[]
as.numeric(g)[]

Run the code above in your browser using DataLab