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

View source: R/sk_methods.R

as.double.skR Documentation

Coerce grid values to numeric (double type)

Description

This also adds support for as.numeric

Usage

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

Arguments

x

a sk object

...

further arguments to as.double

Value

an "sk" object with numeric data values

Examples

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


snapKrig documentation built on May 31, 2023, 6:34 p.m.