Skip to contents

Introduction

The teal.data package enables teal application developers to convert their data into a format which can be used inside teal applications.

Quick Start

For creating ADaM clinical trial data please use the cdisc_data and cdisc_dataset functions:

library(teal.data)

# create some dummy data
adsl <- teal.data::example_cdisc_data("ADSL")
adtte <- teal.data::example_cdisc_data("ADTTE")

my_data <- cdisc_data(
  cdisc_dataset("ADSL", adsl),
  cdisc_dataset("ADTTE", adtte)
)

For more general data use the teal_data and dataset functions:

my_general_data <- teal_data(
  dataset("iris", iris),
  dataset("mtcars", mtcars)
)