columnDescriptions: Get column descriptions for the GEOmetadb database

Description Usage Arguments Value Author(s) Examples

Description

Searching the GEOmetadb database requires a bit of knowledge about the structure of the database and column descriptions. This function returns those column descriptions for all columns in all tables in the database.

Usage

1
columnDescriptions(sqlite_db_name='GEOmetadb.sqlite')

Arguments

sqlite_db_name

The filename of the GEOmetadb sqlite database file

Value

A three-column data.frame including TableName, FieldName, and Description.

Author(s)

Sean Davis <sdavis2@mail.nih.gov>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Use the demo GEOmetadb database:
if( !file.exists("GEOmetadb.sqlite") ) {
    demo_sqlfile <- getSQLiteFile(destdir = getwd(), destfile = "GEOmetadb.sqlite.gz", type = "demo")
} else {
    demo_sqlfile <- "GEOmetadb.sqlite"
}
columnDescriptions(demo_sqlfile)[1:5,]

## Download the full GEOmetadb database:
## Not run: geometadbfile <- getSQLiteFile()

GEOmetadb documentation built on Nov. 8, 2020, 7:19 p.m.