collatedata: CardiacDP - collatedata()

View source: R/collatedata.R

collatedataR Documentation

CardiacDP - collatedata()

Description

Automatically read and collate separate .csv files in chronological order as inferred by the file names and in hierarchy.

Usage

collatedata(file_path, output_file = NULL, verbose = FALSE)

Arguments

file_path

Designate the path to your file, must be a .zip file

output_file

Optional path to write the collated data table as a CSV file. May be either a full file path (e.g. /path/to/out.csv) or an output directory (e.g. /path/to/outdir). If a directory (or a path without a file extension) is provided, a file named <input_stem>_collated.csv is written inside it. Default NULL (no file written).

verbose

Logical; if TRUE, emit progress messages. Default FALSE.

Value

A single collated data table

Examples

zip_path <- system.file("extdata", "example.zip", package = "CardiacDP")
collated <- collatedata(zip_path)

CardiacDP documentation built on Feb. 13, 2026, 1:06 a.m.