getStudy {RImmPort} | R Documentation

## Get all data of a specific study from the ImmPort data source

### 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

    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

    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")

[Package RImmPort version 1.15.0 Index]