validate_cycle: Validate that year cycle is correct

View source: R/validate_cycle.R

validate_cycleR Documentation

Validate that year cycle is correct

Description

Validate that year cycle is correct

Usage

validate_cycle(cycle)

Arguments

cycle

An election cycle (e.g. 2018)

Value

TRUE if correct FALSE otherwise

Examples

validate_cycle(1996)#TRUE
validate_cycle(1979)#FALSE
validate_cycle(16) #FALSE

ProPublicaR documentation built on Sept. 8, 2023, 5:53 p.m.