
Last chance! 50% off unlimited learning
Sale ends in
Grid
object.Grid
object.
scale_Grid(X, fromRange = range_Grid(X), toRange = c(0, 1))
"Grid"
or which can be
coerced into this class.2
(min and max)
or a matrix with 2
rows (min an max) and one column for
each grid dimension in X
. This object gives the original
"old" range.2
(min and max) or
a matrix with 2
rows (min an max) and one column for
each grid dimension in X
.This object gives the target "new" range
replacing the old one.X
but with the
each levels rescaled.
range_Grid
.
myGD <- Grid(levels = list(x = c(1, 3, 10), y = c(0, 1000, 2000, 3000)))
scale_Grid(myGD)
scale_Grid(as.matrix(myGD))
scale_Grid(as.data.frame(myGD))
Run the code above in your browser using DataLab