powered by
Check if a string is a valid IP address. Currently only IPv4 addresses are supported.
validip(ip)
Returns TRUE if the input is a potentially valid IP address, and FALSE otherwise.
TRUE
FALSE
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.
library(getip) validip(c("192.168.1.1", "700.168.1.1"))
Run the code above in your browser using DataLab