This package contains functions and shiny modules for extracting and merging data within the teal
framework.
install.packages('teal.transform')
Alternatively, you might want to use the development version.
# install.packages("pak")
pak::pak("insightsengineering/teal.transform")
To understand how to use this package, please refer to the Getting Started article, which provides multiple examples of code implementation.
Below is a small example usage:
library(teal.transform)
ADSL <- teal.data::rADSL
adsl_extract <- data_extract_spec(
dataname = "ADSL",
filter = filter_spec(vars = "SEX", choices = c("F", "M")),
select = select_spec(choices = c("BMRKR1", "AGE"))
)
ui <- data_extract_ui(
id = "adsl_ui",
label = "ADSL UI",
data_extract_spec = adsl_extract
)
library(shiny)
ui <- fluidPage(ui)
server <- function(input, output, session) {}
shinyApp(ui, server)
If you encounter a bug or have a feature request, please file an issue. For questions, discussions, and staying up to date, please use the teal
channel in the pharmaverse
slack workspace.