as.logical.sk {snapKrig} | R Documentation |
Coerce grid values to logical
Description
Coerce grid values to logical
Usage
## S3 method for class 'sk'
as.logical(x, ...)
Arguments
x |
a sk object |
... |
further arguments to as.logical |
Value
a "sk" object with logical data values
Examples
g = sk_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))
[Package snapKrig version 0.0.2 Index]