is_valid_ori: Checks if the ORI is valid

Description Usage Arguments Value Examples

View source: R/lookups.R

Description

Checks if ORI (a 9-digit unique identifier code assigned to each agency) is valid for the API.

Usage

1

Arguments

ori

A string or vector of strings of the 9-character ORI code (unique agency ID) for the desired agency.

Value

TRUE if ori is valid, else FALSE. If ori is a vector, returns TRUE or FALSE for each ori.

Examples

1
2
3
4
# ORI for Oakland Police Deparment in California
is_valid_ori("CA0010900")
# Incorrect ori
is_valid_ori("abc123")

jacobkap/fbi documentation built on Sept. 18, 2020, 7:32 p.m.