fars_read_years: read FARS files

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

read FARS data from file

Usage

1

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

1
2
3
4
library(dplyr)
library(readr)
library(tidyr)
fars_read_years(c(2013))

jmab20/farsfuncs documentation built on May 17, 2019, 8:15 a.m.