From 27acb4421efac242d12fb7a2b14f9fdb05ec9283 Mon Sep 17 00:00:00 2001 From: jimrothstein Date: Thu, 10 Oct 2024 14:55:25 -0700 Subject: [PATCH] Restore comments to original language. --- inst/templates/ad_adsl.R | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inst/templates/ad_adsl.R b/inst/templates/ad_adsl.R index 42026c0a7..333756680 100644 --- a/inst/templates/ad_adsl.R +++ b/inst/templates/ad_adsl.R @@ -2,17 +2,20 @@ # # Label: Subject Level Analysis Dataset # -# Load packages (including test datasets) +# Input: dm, ds, ex, ae, lb library(admiral) library(pharmaversesdtm) # Contains example datasets from the CDISC pilot project library(dplyr) library(lubridate) library(stringr) -# Though datasets are already loaded, identify specific datasets for this template. + +# Load source datasets ---- + # Use e.g. haven::read_sas to read in .sas7bdat, or other suitable functions # as needed and assign to the variables below. +# For illustration purposes read in admiral test data. dm <- pharmaversesdtm::dm ds <- pharmaversesdtm::ds @@ -25,6 +28,7 @@ lb <- pharmaversesdtm::lb # as NA values. Further details can be obtained via the following link: # https://pharmaverse.github.io/admiral/articles/admiral.html#handling-of-missing-values # nolint + dm <- convert_blanks_to_na(dm) ds <- convert_blanks_to_na(ds) ex <- convert_blanks_to_na(ex)