Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

SRAdb (version 1.30.0)

colDescriptions: Get column descriptions of SRAmetadb.sqlite

Description

Get column descriptions of SRAmetadb.sqlite, including table, field, field data type, description and default values

Usage

colDescriptions( sra_con )

Arguments

sra_con
Connection of the SRAmetadb SQLite database

Value

A seven-column data.frame including table_name, field_name, type, description, value_list.

Examples

Run this code
if(file.exists('SRAmetadb.sqlite')) {
  
  library(SRAdb)
  sra_dbname <- 'SRAmetadb.sqlite'	
  sra_con <- dbConnect(dbDriver("SQLite"), sra_dbname)
  
  ## Get column descriptions
  a <- colDescriptions(sra_con=sra_con)[1:5,]

} else {
  print("use getSRAdbFile() to get a copy of the SRAmetadb.sqlite file and then rerun the example")
}

Run the code above in your browser using DataLab