admiral1.3.1 package

ADaM in R Asset Library

compute_qual_imputation

Function to Impute Values When Qualifier Exists in Character Result

compute_rr

Compute RR Interval From Heart Rate

compute_scale

Compute Scale Parameters

compute_tmf

Derive the Time Imputation Flag

consolidate_metadata

Consolidate Multiple Meta Datasets Into a Single One

convert_blanks_to_na

Convert Blank Strings Into NAs

convert_date_to_dtm

Convert a Date into a Datetime Object

convert_dtc_to_dt

Convert a Date Character Vector into a Date Object

convert_dtc_to_dtm

Convert a Date Character Vector into a Datetime Object

convert_na_to_blanks

Convert NAs Into Blank Strings

count_vals

Count Number of Observations Where a Variable Equals a Value

create_period_dataset

Create a Reference Dataset for Subperiods, Periods, or Phases

create_query_data

Creates a queries dataset as input dataset to the dataset_queries ar...

create_single_dose_dataset

Create dataset of single doses

date_source

Create a date_source object

default_qtc_paramcd

Get Default Parameter Code for Corrected QT

derivation_slice

Create a derivation_slice Object

derive_basetype_records

Derive Basetype Variable

derive_expected_records

Derive Expected Records

derive_extreme_event

Add the Worst or Best Observation for Each By Group as New Records

derive_extreme_records

Add the First or Last Observation for Each By Group as New Records

derive_locf_records

Derive LOCF (Last Observation Carried Forward) Records

derive_param_bmi

Adds a Parameter for BMI

derive_param_bsa

Adds a Parameter for BSA (Body Surface Area) Using the Specified Metho...

derive_param_computed

Adds a Parameter Computed from the Analysis Value of Other Parameters

derive_param_doseint

Adds a Parameter for Dose Intensity

derive_param_exist_flag

Add an Existence Flag Parameter

derive_param_exposure

Add an Aggregated Parameter and Derive the Associated Start and End Da...

derive_param_extreme_record

Adds a Parameter Based on First or Last Record from Multiple Sources

derive_param_framingham

Adds a Parameter for Framingham Heart Study Cardiovascular Disease 10-...

derive_param_map

Adds a Parameter for Mean Arterial Pressure

derive_param_qtc

Adds a Parameter for Corrected QT (an ECG measurement)

derive_param_rr

Adds a Parameter for Derived RR (an ECG measurement)

derive_param_tte

Derive a Time-to-Event Parameter

derive_param_wbc_abs

Add a parameter for lab differentials converted to absolute values

derive_summary_records

Add New Records Within By Groups Using Aggregation Functions

derive_var_age_years

Derive Age in Years

derive_var_analysis_ratio

Derive Ratio Variable

derive_var_anrind

Derive Reference Range Indicator

derive_var_atoxgr_dir

Derive Lab Toxicity Grade 0 - 4

derive_var_atoxgr

Derive Lab High toxicity Grade 0 - 4 and Low Toxicity Grades 0 - (-4)

derive_var_base

Derive Baseline Variables

derive_var_chg

Derive Change from Baseline

derive_var_dthcaus

Derive Death Cause

derive_var_extreme_dt

Derive First or Last Date from Multiple Sources

derive_var_extreme_dtm

Derive First or Last Datetime from Multiple Sources

derive_var_extreme_flag

Add a Variable Flagging the First or Last Observation Within Each By G...

derive_var_joined_exist_flag

Derives a Flag Based on an Existing Flag

derive_var_merged_ef_msrc

Merge an Existence Flag From Multiple Sources

derive_var_merged_exist_flag

Merge an Existence Flag

derive_var_merged_summary

Merge Summary Variables

derive_var_obs_number

Adds a Variable Numbering the Observations Within Each By Group

derive_var_ontrtfl

Derive On-Treatment Flag Variable

derive_var_pchg

Derive Percent Change from Baseline

derive_var_relative_flag

Flag Observations Before or After a Condition is Fulfilled

derive_var_shift

Derive Shift

derive_var_trtdurd

Derive Total Treatment Duration (Days)

derive_var_trtemfl

Derive Treatment-emergent Flag

derive_vars_aage

Derive Analysis Age

derive_vars_atc

Derive ATC Class Variables

derive_vars_cat

Derive Categorization Variables Like AVALCATy and AVALCAyN

derive_vars_computed

Adds Variable(s) Computed from the Analysis Value of one or more Param...

derive_vars_crit_flag

Derive Criterion Flag Variables CRITy, CRITyFL, and CRITyFN

derive_vars_dt

Derive/Impute a Date from a Character Date

derive_vars_dtm_to_dt

Derive Date Variables from Datetime Variables

derive_vars_dtm_to_tm

Derive Time Variables from Datetime Variables

derive_vars_dtm

Derive/Impute a Datetime from a Character Date

derive_vars_duration

Derive Duration

derive_vars_dy

Derive Relative Day Variables

derive_vars_extreme_event

Add the Worst or Best Observation for Each By Group as New Variables

derive_vars_joined_summary

Summarize Variables from an Additional Dataset Based on Conditions fro...

derive_vars_joined

Add Variables from an Additional Dataset Based on Conditions from Both...

derive_vars_merged_lookup

Merge Lookup Table with Source Dataset

derive_vars_merged

Add New Variable(s) to the Input Dataset Based on Variables from Anoth...

derive_vars_period

Add Subperiod, Period, or Phase Variables to ADSL

derive_vars_query

Derive Query Variables

derive_vars_transposed

Derive Variables by Transposing and Merging a Second Dataset

dt_level

Create a dt_level object

dthcaus_source

Create a dthcaus_source Object

dtm_level

Create a dtm_level object

event_joined

Create a event_joined Object

event_source

Create an event_source Object

event

Create a event Object

extend_condition

Extend a condition string by adding a new condition based on a variabl...

extract_duplicate_records

Extract Duplicate Records

extract_unit

Extract Unit From Parameter Description

filter_date_sources

Select the First or Last Date from Several Sources

filter_exist

Returns records that fit into existing by groups in a filtered source ...

filter_extreme

Filter the First or Last Observation for Each By Group

filter_joined

Filter Observations Taking Other Observations into Account

filter_not_exist

Returns records that don't fit into existing by groups in a filtered s...

filter_relative

Filter the Observations Before or After a Condition is Fulfilled

flag_event

Create a flag_event Object

format_imputed_dtc

Format Imputed Date/Datetime

format.basket_select

Returns a Character Representation of a basket_select() Object

get_admiral_option

Get the Value of an Admiral Option

get_dt_dtm_range

Get Range of Partial Date / Datetime

get_duplicates_dataset

Get Duplicate Records that Led to a Prior Error

get_flagged_records

Create an Existence Flag

get_highest_imputation_level

Get Highest Imputation Level

adjust_last_day_imputation

Adjust Last Day Imputation

admiral-package

admiral: ADaM in R Asset Library

assert_date_imputation

Assert date_imputation

assert_highest_imputation

Assert Highest Imputation Validity

assert_parameters_argument

Asserts parameters Argument and Converts to List of Expressions

assert_time_imputation

Assert time_imputation

basket_select

Create a basket_select object

call_derivation

Call a Single Derivation Multiple Times

call_user_fun

Calls a Function Provided by the User

censor_source

Create a censor_source Object

chr2vars

Turn a Character Vector into a List of Expressions

compute_age_years

Compute Age in Years

compute_bmi

Compute Body Mass Index (BMI)

compute_bsa

Compute Body Surface Area (BSA)

compute_dtf

Derive the Date Imputation Flag

compute_duration

Compute Duration

compute_egfr

Compute Estimated Glomerular Filtration Rate (eGFR) for Kidney Functio...

compute_framingham

Compute Framingham Heart Study Cardiovascular Disease 10-Year Risk Sco...

compute_map

Compute Mean Arterial Pressure (MAP)

compute_qtc

Compute Corrected QT

compute_qual_imputation_dec

Compute Factor for Value Imputations When Character Value Contains < o...

get_hori_data

Creating Temporary Parameters and <variable>.<parameter> Variables

get_imputation_target_date

Get Date Imputation Targets

get_imputation_target_time

Get Time Imputation Targets

get_imputation_targets

Get Imputation Targets

get_joined_data

Join Data for "joined" functions

get_joined_sub_data

Join Data for "joined" functions

get_many_to_one_dataset

Get Many to One Values that Led to a Prior Error

get_not_mapped

Get list of records not mapped from the lookup table.

get_one_to_many_dataset

Get One to Many Values that Led to a Prior Error

get_partialdatetime

Parse DTC variable and Determine Components

get_summary_records

Create Summary Records

get_terms_from_db

Get Terms from the Queries Database

get_vars_query

Get Query Variables

impute_date_time

Impute Missing Values

impute_dtc_dt

Impute Partial Date Portion of a --DTC Variable

impute_dtc_dtm

Impute Partial Date(-time) Portion of a --DTC Variable

is_partial_datetime

Check if a Partial Date/Time is a Datetime

list_all_templates

List All Available ADaM Templates

list_tte_source_objects

List all tte_source Objects Available in a Package

max_cond

Maximum Value on a Subset

min_cond

Minimum Value on a Subset

negate_vars

Negate List of Variables

params

Create a Set of Parameters

pipe

Pipe operator

print_named_list

Print Named List

print.adam_templates

Print adam_templates Objects

print.duplicates

Print duplicates Objects

print.source

Print source Objects

propagate_na_values

Propagate NA Values for datetime values

query

Create an query object

records_source

Create a records_source Object

reexport-desc

dplyr desc

reexport-exprs

rlang exprs

restrict_derivation

Execute a Derivation on a Subset of the Input Dataset

restrict_imputed_dtc_dt

Restrict Imputed DTC date to Minimum/Maximum Dates

restrict_imputed_dtc_dtm

Restrict Imputed DTC date to Minimum/Maximum Dates

set_admiral_options

Set the Value of admiral Options

signal_duplicate_records

Signal Duplicate Records

slice_derivation

Execute a Derivation with Different Arguments for Subsets of the Input...

transform_range

Transform Range

tte_source_objects

Pre-Defined Time-to-Event Source Objects

tte_source

Create a tte_source Object

use_ad_template

Open an ADaM Template Script

yn_to_numeric

Map "Y" and "N" to Numeric Values

A toolbox for programming Clinical Data Interchange Standards Consortium (CDISC) compliant Analysis Data Model (ADaM) datasets in R. ADaM datasets are a mandatory part of any New Drug or Biologics License Application submitted to the United States Food and Drug Administration (FDA). Analysis derivations are implemented in accordance with the "Analysis Data Model Implementation Guide" (CDISC Analysis Data Model Team, 2021, <https://www.cdisc.org/standards/foundational/adam>).

  • Maintainer: Ben Straub
  • License: Apache License (>= 2)
  • Last published: 2025-07-29