% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data-load.R
\name{tr_load_clinical}
\alias{tr_load_clinical}
\title{Load and standardize a clinical dataset}
\usage{
tr_load_clinical(data, id_col = "id")
}
\arguments{
\item{data}{A file path to a CSV, or an existing data frame.}

\item{id_col}{Character. Name of the column identifying unique patients.
Defaults to \code{"id"}.}
}
\value{
A tibble of class \code{triageR_data}, with basic metadata attached.
}
\description{
Reads a flat clinical dataset (CSV or data frame) and returns it as a
standardized \code{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")
}
