Export Analysis Results to CSV
Usage
pr_export_csv(
trial,
path,
what = c("summary", "regional", "pressure", "cop"),
masks = NULL
)Arguments
- trial
A pr_trial object.
- path
Character. Output file path.
- what
Character.
"summary"(default),"regional","pressure", or"cop".- masks
Named list of masks. Required for
what = "regional".
Details
Existing outputs are replaced only after writing succeeds. Reported
replacement failures restore the old output or report a retained backup path.
Source recordings, directories and symbolic-link destinations are refused.
This does not provide a transaction against process termination or concurrent
writers. Use pr_write_bundle() for exact numeric preservation; decimal CSV
is an exchange format and may change the last bits of floating-point values.
Examples
tmp <- tempfile(fileext = ".csv")
pr_export_csv(pr_example_trial("insole"), tmp, what = "summary")