Read trial-style data from CSV

read_trial_data(file, show_col_types = FALSE)

Arguments

file

Path to a CSV file.

show_col_types

Passed to readr::read_csv().

Value

A tibble.

Examples

csv_file <- tempfile(fileext = ".csv")
writeLines(
  c(
    "id,follow_up,event,treatment",
    "1,10,1,A",
    "2,12,0,B"
  ),
  con = csv_file
)
trial_data <- read_trial_data(csv_file)