| l_vs_slide | R Documentation |
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.
l_vs_slide(adsl, advs, trt_var = "TRT01A")
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. |
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.
A listing object of vital signs of patients
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.