getStudy: Get all data of a specific study from the ImmPort data source

Description Usage Arguments Value Examples

View source: R/Study.R

Description

The function getStudy queries the ImmPort data source for data of a specific study in all domains. The data is then structured into Study as classes, domains, variables and values.

Usage

1
getStudy(study_id)

Arguments

study_id

Identifier of a specific study

Value

A study data object where in all data are structured as classes, domains, variables and values (in CDISC format)

Examples

1
2
3
4
5
6
7
library(DBI)
library(sqldf)
studies_dir <- system.file("extdata", "ImmPortStudies", package = "RImmPort")
db_dir <- file.path(studies_dir, "Db")
sqlite_conn <- dbConnect(SQLite(), dbname=file.path(db_dir, "ImmPort.sqlite"))
setImmPortDataSource(sqlite_conn)
sdy139 <- getStudy("SDY139")

RImmPort documentation built on Nov. 8, 2020, 5:54 p.m.