db.selgrid {RGeostats}R Documentation

Select data in a Db according to another Grid Db

Description

Select data in a Db according to another Grid Db

Usage

db.selgrid(db, dbgrid, indmin = NA, indmax = NA, flag.limit = TRUE, 
	       verbose = FALSE, combine = "set", flag.replace = TRUE)

Arguments

db

The db-class where the selection must be defined

dbgrid

The db-class corresponding to the grid where the selection is defined

indmin

Vector giving the indices within the grid, along each dimension, defining the minimum coordinate value in the corresponding direction. An index is numbered from 1 to the number of grid nodes along this direction (if flag.limit=TRUE). If one item of this vector is set to NA, no minimum limitation is applied along this direction. If the whole argument is set to NA, no minimum limitation is applied.

indmax

Vector giving the indices within the grid, along each dimension, defining the maximum coordinate value in the corresponding direction. An index is numbered from 1 to the number of grid nodes along this direction (if flag.limit=TRUE). If one item of this vector is set to NA, no maximum limitation is applied along this direction. If the whole argument is set to NA, the vector 'indmax' is set to 'indmin'.

flag.limit

When flag.limit=TRUE, each item of the argument indmin (if not equal to NA) is set to a minimum value equal to 1, and each item of the argument indmax (if not equal to NA) is set to a maximum value equal to the number of grid nodes along this direction.

verbose

When TRUE, a message gives the minimum and maximum value (if active) along each direction.

combine

When a selection already exists, the 'combine' keyword indicates how the current selection must be combined with the previous one.

flag.replace

When a selection already exists and a new selection is created, the previously existing selection is deleted beforehand if this flag is TRUE. Otherwise a new variable is created.

Value

The db-class where the selection has been defined

See Also

db-class


[Package RGeostats version 11.0.6 Index]