Reads a flat clinical dataset (CSV or data frame) and returns it as a
standardized triageR object with basic structure checks. This is the
entry point for most triageR workflows.
Examples
df <- data.frame(
id = 1:5,
age = c(45, 62, 38, 71, 55),
sex = c("F", "M", "F", "M", "F")
)
tr_load_clinical(df, id_col = "id")
#> # A tibble: 5 × 3
#> id age sex
#> <int> <dbl> <chr>
#> 1 1 45 F
#> 2 2 62 M
#> 3 3 38 F
#> 4 4 71 M
#> 5 5 55 F
