Learn R Programming

gmDatabase (version 0.5.0)

gmGet: 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 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.

Value

gmGet, data.frame for gmGetVar

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.

See Also

gmRead, gmExpr

Examples

Run this code
## Not run: gmGet(root)
# gmGetVar(root, "gmUser")## End(Not run)
  

Run the code above in your browser using DataLab