Skip to contents

SDTM Mapping Algorithms/functions

Set of functions to perform SDTM Mappings

assign_no_ct() assign_ct()
Derive an SDTM variable
hardcode_no_ct() hardcode_ct()
Derive an SDTM variable with a hardcoded value
derive_blfl()
Derive Baseline Flag or Last Observation Before Exposure Flag
derive_seq()
Derive the sequence number (--SEQ) variable
derive_study_day()
derive_study_day performs study day calculation
assign_datetime()
Derive an ISO8601 date-time variable
generate_oak_id_vars()
A function to generate oak_id_vars
oak_id_vars()
Raw dataset keys
sbj_vars()
Subject-level key variables

Conditioned data frames

Functions for conditioned data frames (cnd_df)

condition_add()
Add filtering tags to a data set
ctl_new_rowid_pillar(<cnd_df>)
Conditioned tibble pillar print method
tbl_sum(<cnd_df>)
Conditioned tibble header print method
mutate(<cnd_df>)
Mutate method for conditioned data frames

SDTM examples

SDTM domain file examples

domain_example()
Find the path to an example SDTM domain file
read_domain_example()
Read an example SDTM domain

Controlled terminology

read_ct_spec()
Read in a controlled terminology
read_ct_spec_example()
Read an example controlled terminology specification
ct_spec_example()
Find the path to an example controlled terminology file
ct_map()
Recode according to controlled terminology

Date and time conversion

create_iso8601()
Convert date or time collected values to ISO 8601
fmt_cmp()
Regexps for date/time format components
dtc_formats
Date/time collection formats
problems()
Retrieve date/time parsing problems

Explicit dot pipe operator

A simple alternative to %>% {...}

`%.>%`
Explicit Dot Pipe