This is a sample function demonstrating the type of function the user will supply to find additional data about a given domain.
Usage
sample_fnFetchData(
strDomainID = c("AE", "ENROLL", "LB", "PD", "SDRGCOMP", "STUDCOMP", "SUBJ", "DATACHG",
"DATAENT", "QUERY"),
strGroupID = NULL,
strGroupLevel = "Site",
strSubjectID = NULL,
dSnapshotDate = NULL
)
Arguments
- strDomainID
character
The domain data.frame to load.- strGroupID
character
AGroupID
of an individual site or other group within a study.- strGroupLevel
character
Value for the group level. Default:NULL
and taken fromdfMetrics$GroupLevel
if available.- strSubjectID
character
ASubjectID
of an individual participant.- dSnapshotDate
Date
The date of a data snapshot.
See also
Other sample data:
sample_dfAnalyticsInput
,
sample_dfBounds
,
sample_dfGroups
,
sample_dfMetrics
,
sample_dfResults
Examples
head(sample_fnFetchData("AE"))
#> # A tibble: 6 × 12
#> SubjectID GroupID aeser aest_dt aeen_dt mdrpt_nsv mdrsoc_nsv aetoxgr
#> <chr> <chr> <chr> <date> <date> <chr> <chr> <chr>
#> 1 S94810 0X4579 Y 2012-01-09 2012-01-11 term2 soc1 1
#> 2 S62733 0X4178 Y 2012-01-30 2012-02-01 term1 soc1 5
#> 3 S87058 0X7258 N 2012-01-20 2012-01-23 term2 soc1 2
#> 4 S94810 0X4579 N 2012-01-08 2012-01-09 term1 soc1 4
#> 5 S54148 0X902 N 2012-01-09 2012-01-11 term2 soc1 4
#> 6 S54148 0X902 N 2012-01-04 2012-01-05 term1 soc2 1
#> # ℹ 4 more variables: aeongo <chr>, aerel <chr>, mincreated_dts <dttm>,
#> # GroupLevel <chr>
head(sample_fnFetchData("AE", strGroupID = "0X103"))
#> # A tibble: 0 × 12
#> # ℹ 12 variables: SubjectID <chr>, GroupID <chr>, aeser <chr>, aest_dt <date>,
#> # aeen_dt <date>, mdrpt_nsv <chr>, mdrsoc_nsv <chr>, aetoxgr <chr>,
#> # aeongo <chr>, aerel <chr>, mincreated_dts <dttm>, GroupLevel <chr>
head(sample_fnFetchData("AE", strSubjectID = "1350"))
#> # A tibble: 0 × 12
#> # ℹ 12 variables: SubjectID <chr>, GroupID <chr>, aeser <chr>, aest_dt <date>,
#> # aeen_dt <date>, mdrpt_nsv <chr>, mdrsoc_nsv <chr>, aetoxgr <chr>,
#> # aeongo <chr>, aerel <chr>, mincreated_dts <dttm>, GroupLevel <chr>