Learn R Programming

RObsDat (version 14.04)

odm1_1-class: Classes "odm1_1" and "odm1_1Ver"

Description

Observations data works with a hidden layer, in which the commands are translated into SQL-queries and submitted to the database server. The two classes implement this hidden layer. "odm1_1Ver" also provides mechanisms to a simple version management system as described in Reusser et. al 2012.

Arguments

Objects from the Class

Objects can be created by calls of the form new("odm1_1", con=connection)and new("odm1_1Ver", con=connection). The objects store the database connection object returned by dbConnect in the only slot.

Extends

odm1_1Ver extends class odm1_1 directly.

References

Reusser et al. 2012 - todo add exact reference

Examples

Run this code
showClass("odm1_1")
showClass("odm1_1Ver")

	require(RSQLite)
	m <- dbDriver("SQLite")
	con <- dbConnect(m, dbname = "RODM.db")

	#dbGetQuery(con, "SELECT * FROM Versions")
	sqhandler <-  new("odm1_1Ver", con=con)
	#without version management
	   sqhandler <-  new("odm1_1", con=con)        
	options(odm.handler=sqhandler)
   
        getMetadata("VariableName")

Run the code above in your browser using DataLab