is.url: Check If String is a URL

Description Usage Arguments Value See Also Examples

Description

Uses a regex approach to check if a string is a url. This approach is faster than url.exists but does do the actual verification.

Usage

1
is.url(x)

Arguments

x

A character string.

Value

Returns a logical evalution as to whether a string is a url.

See Also

url.exists

Examples

1
2
urls <- c("a", "f/g/h", "www.talkstats.com", "https://github.com/trinker")
is.url(urls)

trinker/reports documentation built on May 31, 2019, 9:51 p.m.