write_chronicle_df: Write a chronicler Data Frame object to a file
Description
Saves the contents of a chronicler object to a CSV or Excel file,
including both the dataset and the log of operations. The data is stored in
the value component of the chronicler object, and the log is included
as metadata in the output.
Invisibly returns NULL. The function is called for its side effect of
writing files.
Arguments
.c
A chronicler object.
path
A single character string specifying the output file path. The
file extension must be either .csv or .xlsx.
row.names
Logical, whether to include row names when writing to CSV.
Defaults to FALSE.
sep
Character. Field separator for CSV output. Defaults to ",".
...
Additional arguments passed to write.table
when writing CSV.
Details
When writing a CSV file, the first few lines contain the log of operations
performed on the data. Users should skip these lines when reading the data
back in. When writing an Excel file, two sheets are created: value
containing the dataset, and log containing the log of operations as a
data frame for better readability.