Skip to contents

Check if an argument is an IPv4 address string

Usage

is_ipv4(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid IPv4 address string, FALSE otherwise.

Examples

is_ipv4("192.168.1.1")
#> [1] TRUE