##' 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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.