db-class {RGeoS}R Documentation

Class "db" The RGeoS Data Base

Description

A structure has been developped to capture any type of information that is passed as an input data or used as an output result.

Objects from the Class

Objects can be created by calls of the form new("db", ...).

They mainly correspond either to a set of individual points to an organized grid. The number of space dimensions is not limited. The number of variables is not limited.

Slots

flag.grid:

Object of class "logical" Is set to TRUE if the file contains a grid and to FALSE otherwise

ndim:

Object of class "numeric" Space dimension

x0:

Object of class "numeric" Vector containing the coordinates of the lower corner of the grid. These parameters are only used when the data is organized as a grid (flag.grid=TRUE).

dx:

Object of class "numeric" Vector containing the mesh of the grid. These parameters are only used when the data is organized as a grid (flag.grid=TRUE).

nx:

Object of class "numeric" Vector containing the number of meshes for the grid. These parameters are only used when the data is organized as a grid (flag.grid=TRUE).

locators:

Object of class "character" The locators provide a set of nicknames to each field of the data frame. These nicknames are used for the program to default variables to calling functions. These nicknames must belong to the following list:

The locators followed by '*' must be followed by a number.

items:

Object of class "data.frame" The data

Methods

[

db[row,col] returns the value to the corresponding element of the data.frame db

[<-

db[row,col]<-value assigns value to the corresponding element of the data.frame db

\$

db$parameter is used to query the value of parameter from db:

\$<-

Same as above but for assignment

show

db.print

print

db.print

plot

db.plot

See Also

Other functions are available, such as:

Examples

showClass("db")

[Package RGeoS version 9.1.1 Index]