validip | R Documentation |
Check if a string is a valid IP address. Currently only IPv4 addresses are supported.
validip(ip)
ip |
A string or vector of strings. |
This function is not like a 'ping'. It merely checks if the string is correctly formatted and could theoretically be a valid IP address.
Returns TRUE
if the input is a potentially valid IP address, and
FALSE
otherwise.
library(getip)
validip(c("192.168.1.1", "700.168.1.1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.