Add quality flags to a data file in Station Exchange Format version 1.0.0
write_flags(infile, qcfile, outpath, note = "", match = TRUE)Character string giving the path of the SEF file.
Character string giving the path of the file with the quality flags as produced with the QC tests. This file must have 6 (8) tab-separated columns for daily (sub-daily) data: variable code, year, month, day, (hour), (minute), value, semicolon(';')-separated failed tests.
Character string giving the output path.
Character string to be added to the end of the name of the input file to form the output filename. It will be separated from the rest of the name by an underscore. Blanks will be also replaced by underscores. If not specified, input and output filenames will be identical.
Write the flags only if the values in the qc file are identical to those in the SEF file (default to TRUE).
Yuri Brugnara