subset {tofsims} | R Documentation

## Generic method for subset

### Description

Generic method for subset

`Subset` method for objects of class `MassImage`

### Usage

    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

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

[Package tofsims version 1.10.1 Index]