Checks whether geoconnex mainstem identifiers have been superseded by a newer reference release. See update_mainstems to resolve a superseded mainstem id to its replacement.
check_mainstems(x)integer or character vector of geoconnex ref/mainstems ids,
or full mainstem uri (any namespace, e.g. ref/mainstems or
usgs/mainstems) vector of mainstem identifiers to check. Bare
integers/character ids are assumed to be ref/mainstems ids; a full
uri is matched literally, so ids minted under a different namespace are
never confused with a ref/mainstems id that happens to share the
same trailing number.
logical vector the same length as x. TRUE
indicates the mainstem id has been superseded.
# \donttest{
check_mainstems(c(2086165, 2086637))
#> [1] TRUE TRUE
# }