S4 Class: domain

Domain(df, columns)

# S4 method for data.frame,missing
Domain(df, columns = NULL)

# S4 method for data.frame,data.frame
Domain(df, columns)

DM(df, columns)

# S4 method for data.frame,missing
DM(df, columns = NULL)

# S4 method for data.frame,data.frame
DM(df, columns)

Arguments

df

(data.frame).

columns

(data.frame).

Functions

  • Domain: generic Domain

  • Domain,data.frame,missing-method: create Domain with missing column description.

  • Domain,data.frame,data.frame-method: create Domain with column description.

  • DM-class: class DM

  • DM: generic DM

  • DM,data.frame,missing-method: create DM with missing column description.

  • DM,data.frame,data.frame-method: create DM with column description.

Slots

df

(data.frame)
the data.

columns

(data.frame)
metadata, information about columns.

Examples

Domain(df = dm)
#> An object of class "Domain" #> Slot "df": #> STUDYID DOMAIN USUBJID SUBJID RFSTDTC RFENDTC SITEID #> 1 S-CDSK-01 DM CDISC01.100008 100008 2003-04-29 2003-10-12 Site-100 #> 2 S-CDSK-01 DM CDISC01.100014 100014 2003-10-15 2004-03-29 Site-100 #> 3 S-CDSK-01 DM CDISC01.200001 200001 2003-09-30 2004-02-02 Site-200 #> 4 S-CDSK-01 DM CDISC01.200002 200002 2003-10-10 2004-03-28 Site-200 #> 5 S-CDSK-01 DM CDISC01.200005 200005 2003-10-10 2004-03-28 Site-200 #> BRTHDTC AGE AGEU SEX RACE ETHNIC #> 1 1930-08-05 72 YEARS M OTHER NOT HISPANIC OR LATINO #> 2 1936-11-01 66 YEARS F WHITE NOT HISPANIC OR LATINO #> 3 1923-09-03 80 YEARS F MULTIPLE NOT HISPANIC OR LATINO #> 4 1933-07-22 70 YEARS F BLACK OR AFRICAN AMERICAN NOT HISPANIC OR LATINO #> 5 1937-02-22 66 YEARS F WHITE NOT HISPANIC OR LATINO #> ARMCD ARM COUNTRY #> 1 WONDER10 Miracle Drug 10 mg USA #> 2 WONDER20 Miracle Drug 20 mg USA #> 3 PLACEBO Placebo USA #> 4 WONDER10 Miracle Drug 10 mg USA #> 5 SCRNFAIL Screen Failure USA #> #> Slot "columns": #> names #> STUDYID STUDYID #> DOMAIN DOMAIN #> USUBJID USUBJID #> SUBJID SUBJID #> RFSTDTC RFSTDTC #> RFENDTC RFENDTC #> SITEID SITEID #> BRTHDTC BRTHDTC #> AGE AGE #> AGEU AGEU #> SEX SEX #> RACE RACE #> ETHNIC ETHNIC #> ARMCD ARMCD #> ARM ARM #> COUNTRY COUNTRY #>
columns <- data.frame( row.names = c("STUDYID", "AGE"), label = c("Study Identifier", "Age") ) Domain(df = dm, columns = columns)
#> An object of class "DM" #> Slot "df": #> STUDYID DOMAIN USUBJID SUBJID RFSTDTC RFENDTC SITEID #> 1 S-CDSK-01 DM CDISC01.100008 100008 2003-04-29 2003-10-12 Site-100 #> 2 S-CDSK-01 DM CDISC01.100014 100014 2003-10-15 2004-03-29 Site-100 #> 3 S-CDSK-01 DM CDISC01.200001 200001 2003-09-30 2004-02-02 Site-200 #> 4 S-CDSK-01 DM CDISC01.200002 200002 2003-10-10 2004-03-28 Site-200 #> 5 S-CDSK-01 DM CDISC01.200005 200005 2003-10-10 2004-03-28 Site-200 #> BRTHDTC AGE AGEU SEX RACE ETHNIC #> 1 1930-08-05 72 YEARS M OTHER NOT HISPANIC OR LATINO #> 2 1936-11-01 66 YEARS F WHITE NOT HISPANIC OR LATINO #> 3 1923-09-03 80 YEARS F MULTIPLE NOT HISPANIC OR LATINO #> 4 1933-07-22 70 YEARS F BLACK OR AFRICAN AMERICAN NOT HISPANIC OR LATINO #> 5 1937-02-22 66 YEARS F WHITE NOT HISPANIC OR LATINO #> ARMCD ARM COUNTRY #> 1 WONDER10 Miracle Drug 10 mg USA #> 2 WONDER20 Miracle Drug 20 mg USA #> 3 PLACEBO Placebo USA #> 4 WONDER10 Miracle Drug 10 mg USA #> 5 SCRNFAIL Screen Failure USA #> #> Slot "columns": #> label #> STUDYID Study Identifier #> DOMAIN <NA> #> USUBJID <NA> #> SUBJID <NA> #> RFSTDTC <NA> #> RFENDTC <NA> #> SITEID <NA> #> BRTHDTC <NA> #> AGE Age #> AGEU <NA> #> SEX <NA> #> RACE <NA> #> ETHNIC <NA> #> ARMCD <NA> #> ARM <NA> #> COUNTRY <NA> #>
DM(df = dm)
#> An object of class "DM" #> Slot "df": #> STUDYID DOMAIN USUBJID SUBJID RFSTDTC RFENDTC SITEID #> 1 S-CDSK-01 DM CDISC01.100008 100008 2003-04-29 2003-10-12 Site-100 #> 2 S-CDSK-01 DM CDISC01.100014 100014 2003-10-15 2004-03-29 Site-100 #> 3 S-CDSK-01 DM CDISC01.200001 200001 2003-09-30 2004-02-02 Site-200 #> 4 S-CDSK-01 DM CDISC01.200002 200002 2003-10-10 2004-03-28 Site-200 #> 5 S-CDSK-01 DM CDISC01.200005 200005 2003-10-10 2004-03-28 Site-200 #> BRTHDTC AGE AGEU SEX RACE ETHNIC #> 1 1930-08-05 72 YEARS M OTHER NOT HISPANIC OR LATINO #> 2 1936-11-01 66 YEARS F WHITE NOT HISPANIC OR LATINO #> 3 1923-09-03 80 YEARS F MULTIPLE NOT HISPANIC OR LATINO #> 4 1933-07-22 70 YEARS F BLACK OR AFRICAN AMERICAN NOT HISPANIC OR LATINO #> 5 1937-02-22 66 YEARS F WHITE NOT HISPANIC OR LATINO #> ARMCD ARM COUNTRY #> 1 WONDER10 Miracle Drug 10 mg USA #> 2 WONDER20 Miracle Drug 20 mg USA #> 3 PLACEBO Placebo USA #> 4 WONDER10 Miracle Drug 10 mg USA #> 5 SCRNFAIL Screen Failure USA #> #> Slot "columns": #> names #> STUDYID STUDYID #> DOMAIN DOMAIN #> USUBJID USUBJID #> SUBJID SUBJID #> RFSTDTC RFSTDTC #> RFENDTC RFENDTC #> SITEID SITEID #> BRTHDTC BRTHDTC #> AGE AGE #> AGEU AGEU #> SEX SEX #> RACE RACE #> ETHNIC ETHNIC #> ARMCD ARMCD #> ARM ARM #> COUNTRY COUNTRY #>
columns <- data.frame( row.names = c("STUDYID", "AGE"), label = c("Study Identifier", "Age") ) DM(df = dm, columns = columns)
#> An object of class "DM" #> Slot "df": #> STUDYID DOMAIN USUBJID SUBJID RFSTDTC RFENDTC SITEID #> 1 S-CDSK-01 DM CDISC01.100008 100008 2003-04-29 2003-10-12 Site-100 #> 2 S-CDSK-01 DM CDISC01.100014 100014 2003-10-15 2004-03-29 Site-100 #> 3 S-CDSK-01 DM CDISC01.200001 200001 2003-09-30 2004-02-02 Site-200 #> 4 S-CDSK-01 DM CDISC01.200002 200002 2003-10-10 2004-03-28 Site-200 #> 5 S-CDSK-01 DM CDISC01.200005 200005 2003-10-10 2004-03-28 Site-200 #> BRTHDTC AGE AGEU SEX RACE ETHNIC #> 1 1930-08-05 72 YEARS M OTHER NOT HISPANIC OR LATINO #> 2 1936-11-01 66 YEARS F WHITE NOT HISPANIC OR LATINO #> 3 1923-09-03 80 YEARS F MULTIPLE NOT HISPANIC OR LATINO #> 4 1933-07-22 70 YEARS F BLACK OR AFRICAN AMERICAN NOT HISPANIC OR LATINO #> 5 1937-02-22 66 YEARS F WHITE NOT HISPANIC OR LATINO #> ARMCD ARM COUNTRY #> 1 WONDER10 Miracle Drug 10 mg USA #> 2 WONDER20 Miracle Drug 20 mg USA #> 3 PLACEBO Placebo USA #> 4 WONDER10 Miracle Drug 10 mg USA #> 5 SCRNFAIL Screen Failure USA #> #> Slot "columns": #> label #> STUDYID Study Identifier #> DOMAIN <NA> #> USUBJID <NA> #> SUBJID <NA> #> RFSTDTC <NA> #> RFENDTC <NA> #> SITEID <NA> #> BRTHDTC <NA> #> AGE Age #> AGEU <NA> #> SEX <NA> #> RACE <NA> #> ETHNIC <NA> #> ARMCD <NA> #> ARM <NA> #> COUNTRY <NA> #>