Subsetting a spatial time series object

# S3 method for class 'gts'
subset(x, longitude = NULL, latitude = NULL, grid = NULL, expand = 0, ...)

# S3 method for class 'grid'
subset(
  x,
  longitude = NULL,
  latitude = NULL,
  index.return = FALSE,
  grid = NULL,
  expand = 0,
  ...
)

# S3 method for class 'static'
subset(x, longitude = NULL, latitude = NULL, grid = NULL, expand = 0, ...)

Arguments

x

the object to be subsetted.

longitude

The range of longitude to subset the grid.

latitude

The range of latitude to subset the grid.

grid

A grid object, or a 'gts' object.

expand

Number of units to expand the grid, generally degrees. It can be one number or two (longitude, latitude).

...

further arguments to be passed to or from other methods.

Value

A 'gts' object after subsetting.