is_ipv4: Check if an argument is an IPv4 address string

View source: R/string.R

is_ipv4R Documentation

Check if an argument is an IPv4 address string

Description

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")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.