Writes the output of refine_records() to disk as gzip-compressed
CSV files. Three files are exported: all usable records, the native subset,
and records that failed coordinate validation.
Arguments
- refined_records
A
refinedobject returned byrefine_records().- export_path
Directory where the compressed CSV files should be written.
Details
The following files are written:
usable_refined_records.csv.gz: all records with validated coordinates and assigned native statusnative_refined_records.csv.gz: the subset classified as nativeCoordinateProblematic_records.csv.gz: records that failed one or more CoordinateCleaner tests
Files are written with fwrite(encoding = "UTF-8"). export_path is
validated before writing: if it exists as a file (not a directory) or is
NA, the function stops with an error; if it does not exist, a warning is
emitted and the directory is created automatically.
