Description Usage Arguments Value See Also Examples
These functions allow a useR to check whether OLCs they've
been provided are valid or not. valid_short
identifies whether
a vector of OLCs are valid "short" codes; valid_long
identifies
whether OLCs are valid "long" codes, and valid_full
identifies
whether OLCs are valid, full stop.
1 2 3 4 5 |
codes |
a character vector containing Open Location Codes. |
a vector of TRUE and FALSE values, where TRUE corresponds to a valid code and FALSE an invalid.
decode_olc
and encode_olc
for creating
and resolving valid Open Location Codes.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #Validate that a particular OLC is valid
validate_olc("WC2345+G6g")
#[1] TRUE
#It is! Is it a short?
validate_short("WC2345+G6g")
#[1] TRUE
#Yep!
#So it's not full?
validate_full("WC2345+G6g")
#[1] FALSE
#Nope!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.