as.logical.bk | R Documentation |
Coerce grid values to logical
## S3 method for class 'bk'
as.logical(x, ...)
x |
a bk object |
... |
further arguments to as.logical |
a "bk" object with logical data values
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.