pub fn write_field_csvs(
results: &[AnalysisResults],
output_dir: &Path,
file_paths: &[PathBuf],
) -> Result<()>
Expand description
Writes individual CSV files for each field, containing statistics across all input files.
Creates one CSV file per field. Each row in a field’s CSV represents the field’s metrics from one of the input files.
§Arguments
results
- A slice ofAnalysisResults
, one for each analyzed file.output_dir
- The directory where the CSV files will be written.file_paths
- A slice ofPathBuf
s representing the original file paths for each result.
§Returns
std::io::Result<()>
- Ok if successful, otherwise an error.