gmGet {gmDatabase} | R Documentation |
Get information about an object.
Description
gmGet
retrieves the information on specified objects stored in a geometallurgical database.
Usage
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 |
what |
The members/variables you want the information from. |
envir |
defines the environment used for evaluation of |
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
Examples
## Not run: gmGet(root)
gmGetVar(root, "gmUser")
## End(Not run)