is_url: Checks whether the variable is a valid URL

Description Usage Arguments Value Examples

View source: R/predicates.R

Description

Checks whether the variable is a valid URL

Usage

1
is_url(x)

Arguments

x

(any) The object to test

Value

TRUE if x is a valid URL, FALSE otherwise

Examples

1
2
3
4
5
6
is_url("http://something.com")
is_url("https://google.com")

is_url(1)
is_url("foo")
is_url(NA)

msgr documentation built on Dec. 16, 2019, 5:41 p.m.