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

View source: R/bk.R

as.double.bkR Documentation

Coerce grid values to numeric (double type)

Description

This also adds support for as.numeric

Usage

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

Arguments

x

a bk object

mode

passed to as.double

Value

a "bk" object with numeric data values

Examples

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


deankoch/pkern documentation built on Oct. 26, 2023, 8:54 p.m.