Learn R Programming

dataresqc (version 1.1.1)

write_flags: Add quality flags to a data file in Station Exchange Format version 1.0.0

Description

Add quality flags to a data file in Station Exchange Format version 1.0.0

Usage

write_flags(infile, qcfile, outpath, note = "", match = TRUE)

Arguments

infile

Character string giving the path of the SEF file.

qcfile

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.

outpath

Character string giving the output path.

note

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.

match

Write the flags only if the values in the qc file are identical to those in the SEF file (default to TRUE).

Author

Yuri Brugnara