View source: R/check_mooring.R
check_mooring | R Documentation |
King County mooring data relies on 3 digit qualifier codes to indicate
whether data is good or bad. The first digit indicates overall quality:
1 = good, 2 = probably good, 3 = suspect, 4 = bad, 9 = missing.
check_mooring
takes a vector of qualifiers as an input, and
returns a vector of the same length with values that indicate whether
each qualifier is good (TRUE
) or bad (FALSE
). For the
purposes of this function, 1 and 2 are good and the rest are bad. This
is particularly useful for filtering out bad data in tibbles. For more
information about qualifier codes, see the mooring website.
check_mooring(quals)
quals |
a vector with numeric mooring qualifier codes |
a logical vector indicating good (TRUE
) or bad (FALSE
) qualifier codes
quals <- c(210, 210, 210, 400, 333)
is_good <- check_mooring(quals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.