db-class {RGeostats}R Documentation

Class "db" The RGeostats 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.

Details

In the case of a Grid Db, the samples are ordered such that the indices of the smallest dimension varies more quickly, followed by the second smallest dimension, and so on.

For example, in the case of a 3-D grid where NX=2, NY=3, NZ=2:

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).

angles:

Object of class "numeric" The item provides the array of rotation angles (only used in 2-D or 3-D). The angles are sorted as follows: Rotation around OZ, then rotation around OY then rotation around Ox”.

flag.rotation:

Object of class "numeric" This item says if the grid is rotated or not. This will avoid superfluous calculations.

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 RGeostats version 11.1.2 Index]