gmGet: Get information about an object.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

gmGet retrieves the information on specified objects stored in a geometallurgical database.

Usage

1
2
3
gmGet(expr,envir=parent.frame(),EXPR=substitute(expr),db=getOption("gmDB"))
gmGetVar(expr,what,EXPR=substitute(expr),envir=parent.frame(),db=getOption("gmDB"),
          unique=FALSE)

Arguments

expr

R expression of an SQL query. Expressions created with gmExpr can be used as well.

what

The members/variables you want the information from.

envir

defines the environment used for evaluation of expr.

EXPR

The quoted version of such an expression.

db

The database connection for the query.

unique

logical: If TRUE the execution is stopped in the case of multiple variables of the same requested variable name.

Details

Every object corresponding to the query is referred by its id. gmGet delivers a list consisting of a data frame info and another list sets. In info the values of all atomic members for every found object are stated. sets consists of data frames, called after the composite member variables, stating the object id and the id of the member object. Since these members are sets, it is possible that the data frames consist of several member objects for one referred object.

If you are interested in information on a certain variable but not the content of variables of this kind, use gmGetVar instead.

Value

list for gmGet, data.frame for gmGetVar

Author(s)

K. Gerald van den Boogaart, S. Matos Camacho

See Also

gmRead, gmExpr

Examples

1
2
3
4
## Not run: gmGet(root)
gmGetVar(root, "gmUser")
## End(Not run)
  

gmDatabase documentation built on May 2, 2019, 9:31 a.m.

Related to gmGet in gmDatabase...