powered by
This also adds support for as.numeric
# S3 method for sk as.double(x, ...)
an "sk" object with numeric data values
a sk object
further arguments to as.double
g = sk_validate(list(gval=sample(c(FALSE, TRUE), 4^2, replace=TRUE), gdim=4, gres=0.5)) g[] as.numeric(g)[]
Run the code above in your browser using DataLab