Skip to contents

Is it a PO box?

Usage

is_po_box(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for PO box variants (PO Box 12, P.O.B. 3).

See also

Other address detectors: is_address(), is_city_name(), is_city_state(), is_state_zip(), is_street_address()

Examples

is_po_box(c("PO Box 1234", "P.O. Box 56", "POB 789", NA))
#> [1] TRUE TRUE TRUE   NA