Determine if a string is a URL
Arguments
- x
character string to check if it is a URL. Must contain a protocol to
be considered a URL.
Value
Logical. TRUE
if x
is a URL, FALSE
otherwise.
Examples
is_url("https://hubverse.io")
#> [1] TRUE
is_url("www.hubverse.io")
#> [1] FALSE