Learn R Programming

lgcp (version 1.3-3)

extract.lgcpPredict: extract.lgcpPredict function

Description

This function requires data to have been dumped to disk: see ?dump2dir and ?setoutput. extract.lgcpPredict extracts chunks of data that have been dumped to disk. The subset of data can either be specified using an (x,y,t,s) box or (window,t,s) region where window is a polygonal subregion of interest.

Usage

## S3 method for class 'lgcpPredict':
extract(obj, x = NULL, y = NULL, t, s = -1,
  inWindow = NULL, crop2parentwindow = TRUE, ...)

Arguments

obj
an object of class lgcpPredict
x
range of x-indices: vector (eg c(2,4)) corresponding to desired subset of x coordinates. If equal to -1, then all cells in this dimension are extracted
y
range of y-indices as above
t
range of t-indices: time indices of interest
s
range of s-indices ie the simulation indices of interest
inWindow
an observation owin window over which to extract the data (alternative to specifying x and y).
crop2parentwindow
logical: whether to only extract cells inside obj$xyt$window (the 'parent window')
...
additional arguments

Value

  • extracted array

See Also

lgcpPredict, loc2poly, dump2dir, setoutput