powered by
Applies a vector shift to a box or point pattern in arbitrary dimension (object of class "boxx" or "ppx").
"boxx"
"ppx"
# S3 method for boxx shift(X, vec= 0, ...) # S3 method for ppx shift(X, vec = 0, ..., spatial = TRUE, temporal = TRUE, local = TRUE)
For shift.boxx, another "boxx" object and for shift.ppx
shift.boxx
shift.ppx
another "ppx" object. In both cases the new object represents the result of applying the vector shift.
This is a method for the generic function shift.
shift
shift, boxx, ppx
boxx
ppx
vec <- c(2,3) dom <- boxx(c(0,1), c(0,1)) X <- ppx(coords(cells), domain = dom) shift(dom, vec) Xs <- shift(X, vec) Xs head(coords(X), n = 3) head(coords(Xs), n = 3)
Run the code above in your browser using DataLab