db.sel {RGeostats}R Documentation

Define a selection

Description

Define a selection in a Data Base

Usage

db.sel(db, ..., selold=NA,namesel=NA, combine="set",flag.replace=FALSE)

Arguments

db

The db-class where the selection must be defined

...

String defining the selection. It may specify directly (with no quote) any variable by its name (not its locator).

selold

When this name is defined and the corresponding field already exists (selold is searched among the locators first, then among the variable names), this variable is reset as the current selection. This definition mode overrides all others.

namesel

Name given to the newly created selection variable, if defined.

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 this keyword, see 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.

Details

If the second argument of db.sel is not provided, the active selection (if any) is discarded.

Value

The db-class where the selection has been defined

See Also

db-class


[Package RGeostats version 11.1.1 Index]