db.polygon {RGeostats}R Documentation

Polygonal Data Base selection

Description

Use a Polygon to build a selection for the Data Base

Usage

db.polygon(db, polygon, flag.out=FALSE, combine="set", flag.replace=FALSE,
           must.noproj=FALSE, flag.period=FALSE, verbose=FALSE)

Arguments

db

The db-class where the new selection must be established

polygon

The polygon-class which must be used to test if a sample is selected as it lies within the polygon or not

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 db.selcombine.

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.

verbose

When TRUE, the statistics on the selected samples are printed.

Value

The db-class structure will contain the new selection


[Package RGeostats version 11.1.1 Index]