sdtm.oak0.2.0 package

SDTM Data Transformation Engine

add_problems

Add ISO 8601 parsing problems

any_problems

Detect problems with the parsing of date/times

assert_capture_matrix

Assert capture matrix

assert_ct_clst

Assert a codelist code

assert_ct_spec

Assert a controlled terminology specification

assert_dtc_fmt

Assert date time character formats

assert_dtc_format

Assert dtc format

assign_datetime

Derive an ISO8601 date-time variable

assign

Derive an SDTM variable

cal_min_max_date

Calculate minimum and maximum date and time in the data frame

coalesce_capture_matrices

Coalesce capture matrices

complete_capture_matrix

Complete a capture matrix

condition_add

Add filtering tags to a data set

contains_oak_id_vars

Does a vector contain the raw dataset key variables?

create_iso8601

Convert date or time collected values to ISO 8601

ct_map

Recode according to controlled terminology

ct_mappings

Controlled terminology mappings

ct_spec_example

Find the path to an example controlled terminology file

ct_spec_vars

Controlled terminology variables

ctl_new_rowid_pillar.cnd_df

Conditioned tibble pillar print method

dataset_oak_vignette

Output a Dataset in a Vignette in the sdtm.oak Format

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

domain_example

Find the path to an example SDTM domain file

dot_pipe

Explicit Dot Pipe

dtc_datepart

Extract date part from ISO8601 date/time variable

dtc_timepart

Extract time part from ISO 8601 date/time variable

dttm_fmt_to_regex

Convert a parsed date/time format to regex

eval_conditions

Evaluate conditions

find_int_gap

Find gap intervals in integer sequences

fmt_cmp

Regexps for date/time format components

fmt_rg

Regexps for date/time components

format_iso8601

Convert date/time components into ISO8601 format

generate_oak_id_vars

A function to generate oak_id_vars

generate_sdtm_supp

Function to generate final SDTM domain and supplemental domain SUPP--

get_cnd_df_cnd_sum

Get the summary of the conditioning vector from a conditioned data fra...

get_cnd_df_cnd

Get the conditioning vector from a conditioned data frame

harcode

Derive an SDTM variable with a hardcoded value

index_for_recode

Determine Indices for Recoding

inform_on_ct_mappability

Inform on the mappability of terms to controlled terminology

is_cnd_df

Check if a data frame is a conditioned data frame

is_ct_mappable

Identify CT mappable terms

is_iso8601

This function is used to check if a --DTC variable is in ISO8601 forma...

is_seq_name

Is it a --SEQ variable name

iso8601_mon

Format as a ISO8601 month

iso8601_na

Convert NA to "-"

iso8601_sec

Format as ISO8601 seconds

iso8601_truncate

Truncate a partial ISO8601 date-time

iso8601_two_digits

Format as a ISO8601 two-digit number

iso8601_year

Format as a ISO8601 four-digit year

months_abb_regex

Regex for months' abbreviations

mutate.cnd_df

Mutate method for conditioned data frames

new_cnd_df

Create a data frame with filtering tags

oak_cal_ref_dates

Calculate Reference dates in ISO8601 character format.

oak_id_vars

Raw dataset keys

parse_dttm_fmt

Parse a date/time format

parse_dttm

Parse a date, time, or date-time

problems

Retrieve date/time parsing problems

pseq

Parallel sequence generation

read_ct_spec_example

Read an example controlled terminology specification

read_ct_spec

Read in a controlled terminology

read_domain_example

Read an example SDTM domain

recode

Recode values

reg_matches

regmatches() with NA

regex_or

Utility function to assemble a regex of alternative patterns

rm_cnd_df

Remove the cnd_df class from a data frame

sbj_vars

Subject-level key variables

sdtm_assign

Derive an SDTM variable

sdtm_hardcode

Derive an SDTM variable with a hardcoded value

sdtm_join

SDTM join

sdtm.oak-package

sdtm.oak: SDTM Data Transformation Engine

str_to_anycase

Generate case insensitive regexps

tbl_sum.cnd_df

Conditioned tibble header print method

yy_to_yyyy

Convert two-digit to four-digit years

zero_pad_whole_number

Convert an integer to a zero-padded character vector

An Electronic Data Capture system (EDC) and Data Standard agnostic solution that enables the pharmaceutical programming community to develop Clinical Data Interchange Standards Consortium (CDISC) Study Data Tabulation Model (SDTM) datasets in R. The reusable algorithms concept in 'sdtm.oak' provides a framework for modular programming and can potentially automate the conversion of raw clinical data to SDTM through standardized SDTM specifications. SDTM is one of the required standards for data submission to the Food and Drug Administration (FDA) in the United States and Pharmaceuticals and Medical Devices Agency (PMDA) in Japan. SDTM standards are implemented following the SDTM Implementation Guide as defined by CDISC <https://www.cdisc.org/standards/foundational/sdtmig>.

  • Maintainer: Rammprasad Ganapathy
  • License: Apache License (>= 2)
  • Last published: 2025-05-22