as.logical.bk: Coerce grid values to logical

View source: R/bk.R

as.logical.bkR Documentation

Coerce grid values to logical

Description

Coerce grid values to logical

Usage

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

Arguments

x

a bk object

...

further arguments to as.logical

Value

a "bk" object with logical data values

Examples

g = bk_validate(list(gval=sample(c(0,1), 4^2, replace=TRUE), gdim=4, gres=0.5))
g[]
as.logical(g)[]

# "range" for logical is reported as integer
summary(as.logical(g))


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