is_url | R Documentation |
Check whether a value or vector is or is not following a set
of rules. For example: is an URL, is an ID vector, are non-variant or
constant values, are binary values... Notice that is_
will return
the result for each observation and are_
for the whole vector.
is_url(x, ...)
is_ip(x, ...)
are_id(x)
are_constant(x)
are_binary(x)
x |
Vector |
... |
Additional parameters passed to |
is_url
. Boolean. Result of checking if x
is a valid URL string.
is_ip
. Boolean. Result of checking if x
is a valid IP string.
are_id
. Boolean. Result of checking if x
is a potential ID vector
are_constant
. Boolean. Result of checking if x
is a constant vector
are_binary
. Boolean. Result of checking if x
is a binary vector
is_url(c("google.com", "http://google.com"))
is_ip(c("163.114.132.0", "7.114.132", "0.0.0.0", "1.1.1.1."))
are_id(1:10)
are_id(LETTERS[1:10])
are_constant(rep(1, 10))
are_constant(1:10)
are_binary(c("A", "B", "A"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.