R/checkObservationFlag.R

##' Check observation flag
##' 
##' Observation flags in the SWS are only allowed to take certain values.  This
##' function ensures that the supplied flags are all valid.
##' 
##' @param flag A character (or character vector) of flag values to test for
##' validity.
##' 
##' @return A logical vector of the same length as flag indicating if the flags
##' are valid (TRUE = valid).
##' 
##' @export
##' 

checkObservationFlag = function(flag){
    flag %in% c("", "E", "I", "T", "M")
}
mkao006/sws_util documentation built on May 23, 2019, 1:06 a.m.