Reads the CSV results written by TreeScan, e.g., from a previous
ts_run() stored in a persistent directory.
Arguments
- path
A directory created by
ts_run()or a TreeScan results.csv.
Value
A ts_result object: a list with results (a data.frame, one row
per cut, as written by TreeScan), dir, files, and prm (the
parameter file used, if found).
Examples
if (FALSE) { # \dontrun{
dir <- tools::R_user_dir("treescanr", "data")
ts_results(file.path(dir, "2026-09-23", "lag1"))
} # }