Skip to content

Commit 1ecc09f

Browse files
committed
Small text changes, last code chunk example clearer
1 parent ec2e06b commit 1ecc09f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

vignettes/iddoverse.Rmd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ MB_RPTESTB
5252

5353
### `prepare_domain()`
5454

55-
`prepare_domain()` takes a single IDDO-SDTM domain, amalgamates the data so that there is one 'best choice' result and timing variable, then pivots the rows by the best choice time variable (`TIME`, `TIME_SOURCE`), the study id (`STUDYID`) and participant number (`USUBJID`). The different events/findings/tests then become columns and the dataset is populated with the associated result, providing a condensed dataset which is more digestible can be easily merged with other data.
55+
`prepare_domain()` takes a single IDDO-SDTM domain, amalgamates the data so that there is one 'best choice' result and timing variable, then pivots the rows by the best choice time variable (`TIME`, `TIME_SOURCE`), the study id (`STUDYID`) and participant number (`USUBJID`). The different events/findings/tests then become columns and the dataset is populated with the associated result, providing a condensed dataset which is more digestible and can be easily merged with other data.
5656

5757
In `prepare_domain()`, the first parameter is the two letter domain code followed by the domain data frame.
5858

@@ -111,7 +111,7 @@ create_participant_table(dm_domain = DM_RPTESTB,
111111
vs_domain = VS_RPTESTB)
112112
```
113113

114-
`create_malaria_pcr_table()` creates a one row per person, per timepoint table combining the polymerase chain reaction (PCR) test information, drawing from the Pharmacogenomics Genetics (PF), Disease Response and Clinical Classification (RS) and disposition (DS) domains.
114+
`create_malaria_pcr_table()` creates a one row per person, per timepoint table combining the polymerase chain reaction (PCR) test information, drawing from the Pharmacogenomics Genetics (PF), Disease Response and Clinical Classification (RS) and (optionally) disposition (DS) domains.
115115

116116
```{r}
117117
create_malaria_pcr_table(pf_domain = PF_RPTESTB,
@@ -148,9 +148,10 @@ table_variables("vS", VS_RPTESTB)
148148
`convert_age_to_years()` simplifies the `AGE` and `AGEU` information to `AGE_YEARS` by converting the various units (days, weeks, months) to years. This is used within `prepare_domain()` and `check_data()` (if `age_in_years = FALSE`)
149149

150150
```{r}
151-
DM_RPTESTB %>% select(STUDYID, DOMAIN, USUBJID, AGE, AGEU)
151+
age_df <- DM_RPTESTB %>% select(STUDYID, DOMAIN, USUBJID, AGE, AGEU)
152+
age_df
152153
153-
convert_age_to_years(DM_RPTESTB %>% select(STUDYID, DOMAIN, USUBJID, AGE, AGEU))
154+
convert_age_to_years(age_df)
154155
```
155156

156157
## Other Resources

0 commit comments

Comments
 (0)