db.polygon {RGeostats} | R Documentation |
Use a Polygon to build a selection for the Data Base
db.polygon(db, polygon, flag.out=FALSE, combine="set", flag.replace=FALSE, must.noproj=FALSE, flag.period=FALSE, flag.nested=FALSE, verbose=FALSE)
db |
The |
polygon |
The |
flag.out |
When FALSE, the procedure selects the samples located within the polygon. When TRUE, the procedure selects the samples located outside the polygon. |
combine |
When a selection already exists, the 'combine' keyword indicates
how the current selection must be combined with the previous one.
For more information on the available keywords, check
|
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. |
must.noproj |
When TRUE, the projection (if defined and active) must not be applied on the input Db |
flag.period |
When TRUE, the first coordinate (in the case it corresponds to a longitude) must be cycled when performing the selection. |
flag.nested |
If flag.nested=TRUE, a sample is masked off if the number of polysets to which it belongs is odd If flag.nested=FALSE, a sample is masked off as soon as it belongs to one polyset |
verbose |
When TRUE, the statistics on the selected samples are printed. |
The db-class
structure will contain the new selection