An exdf object can be written to a CSV file by directly calling
write.csv, but this approach causes some column names to
be unintentionally modified. For example, any spaces will be replaced by
periods. This can potentially cause problems when reloading the data from the
CSV file.
Instead, it is preferred to use write.csv.exdf, which will not modify
any column names. When writing the CSV file, it is saved with the column names
in the first row, the categories in the second row, the units in the third
row, and the data in the remaining rows.
The resulting file can be read using read.csv.exdf. Here, the names,
categories, and units are read from the first three rows of the specified
file, and the data values from the remaining rows. An exdf
object is then created from this information.