l_vs_slide: Listing of Vital Signs: Safety-Evaluable Patients

View source: R/l_vs_slide.R

l_vs_slideR Documentation

Listing of Vital Signs: Safety-Evaluable Patients

Description

This function generates a listing with vital signs of patients. It creates various columns such as patient identifier, age/sex/race, visit, and calculates the range of several vital signs. The output listing includes labels for each column and a main title.

Usage

l_vs_slide(adsl, advs, trt_var = "TRT01A")

Arguments

adsl

A dataframe representing the 'ADSL' data. Used to propagate filters to 'ADVS'

advs

A dataframe representing the ADVS data.

trt_var

Character scalar or 'NULL'. '"TRT01A"' by default. Specifies which variable, if any, should be included as the treatment arm.

Details

The function first validates whether the required columns are present in the ADVS dataframe. Then, various calculations and transformations are performed to create additional columns. Finally, the data is formatted into a listing with appropriate column labels.

Value

A listing object of vital signs of patients

See Also

Vital signs Listing

Examples

require(dplyr)
require(rlistings)
adsl <- eg_adsl
advs <- eg_advs |> filter(SUBJID %in% c("id-236", "id-65", "id-93"))

# Default usage
l_vs_slide(adsl = adsl, advs = advs, trt_var = "TRT01A")

# Custom treatment variable
l_vs_slide(adsl = adsl, advs = advs, trt_var = NULL)


autoslider.core documentation built on Sept. 29, 2026, 5:08 p.m.