Write Short- and Long-Term data in the recommended MQOR data structure
write_mqor.RdThis function takes a data.frame already in R and writes it to the {mqor}
flat file structure.
Usage
write_mqor(data, file = "", delim = ";", na = "-999", dict = mqor::mqo_dict())Arguments
- data
A
data.frameto write to a file.- file
Output file name.
""indicates output to the console.- delim
The delimiter used to separate columns in the files. The default is
";".- na
String to represent missing values in the output data. By default, the number "-999" is used to represent missing values. Passed to the
naargument ofdata.table::fwrite().- dict
See
mqo_dict()for more information. Acts as a data dictionary to specify the columns in the data{mqor}should use.