fars_read_years: read FARS files

View source: R/fars_functions.R

fars_read_yearsR Documentation

read FARS files

Description

read FARS data from file

Usage

fars_read_years(years)

Arguments

years

, a list with all years to be displayed

Details

it is necessary to download the fars files before, this functions read the files from the working directory, if not a warning Throws a warning of "invalid year:" if a numeric other than what is available in data is provided as year.

Value

a data.frame with the month and the total of accidents by year

Examples

library(dplyr)
library(readr)
library(tidyr)
fars_read_years(c(2013))


jmab20/farsfuncs documentation built on Feb. 25, 2025, 2:36 a.m.