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