Displaying 2 results from an estimated 2 matches for "mmstructbase".
2013 Sep 09
1
Package installation and path.package
...empfile(pattern     = "mmstructDB", 
                        tmpdir      = file.path(path.package("mmstruct"),
                                                "data", "databases"),
                        fileext     = ".db")
    return(db.path)
}
.mmstructBASE <- setClass("mmstructBASE",
                          		    representation("VIRTUAL",
                                                                    dbName     = "character",
                                                                    dbTable    = "...
2013 Sep 18
1
Design for classes with database connection
...ecute queries on the database tables. By this, I can use the table sorting of SQLite (e.g. by constructing an index for each important variable). I assume this is faster and more efficient than programming something on my own - why reinventing the wheel? For this I would use VIRTUAL classes like:
.mmstructBASE	<- setClass('mmstructBASE', representation(
					dbName		= "character",
					dbTable		= "character"))
.mmstructDB		<- setClass('mmstructDB', representation(
					conn		= "SQLiteConnection"),
					contains		= c("mmstructBASE"))
.mmstruc...