subset {tofsims} | R Documentation |
Generic method for subset
Subset
method for objects of class MassImage
subset(x, ...) ## S4 method for signature 'MassImage' subset(x, ..., xyUpperLeft = NULL, xyLowerRight = NULL)
x |
object of class MassImage |
... |
additional args |
xyUpperLeft |
vector of length two with x and y for the upper left subset corner |
xyLowerRight |
vector of length two with x and y for the lower right subset corner |
object of class MassImage a subest of the in-object
object of class MassImage
library(tofsimsData) data(tofsimsData) subsetTestImage<-subset(testImage, xyUpperLeft = c(1,1), xyLowerRight = c(50,50)) image(subsetTestImage)