subset: Generic method for subset

Description Usage Arguments Value Examples

Description

Generic method for subset

Subset method for objects of class MassImage

Usage

1
2
3
4
subset(x, ...)

## S4 method for signature 'MassImage'
subset(x, ..., xyUpperLeft = NULL, xyLowerRight = NULL)

Arguments

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

Value

object of class MassImage a subest of the in-object

object of class MassImage

Examples

1
2
3
4
library(tofsimsData)
data(tofsimsData)
subsetTestImage<-subset(testImage, xyUpperLeft = c(1,1), xyLowerRight = c(50,50))
image(subsetTestImage)

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.