powered by
Coerce grid values to logical
# S3 method for sk as.logical(x, ...)
a "sk" object with logical data values
a sk object
further arguments to as.logical
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))
Run the code above in your browser using DataLab