fars_read_years: fars_read_years

Description Usage Arguments Value Examples

View source: R/core.R

Description

This function compacts the data to information on month and year of each fatality in the (vector of) year(s) of the fars-dataset

Usage

1

Arguments

years

a list of one or more integers, representing the years of data to be read

Value

a list with an item, for each year, consisting of a dataframe with the same number of rows as the dataset of that specific year. The columns in the dataframe are 'MONTH' and 'year' for each for which an error occurs (dataset not found of returning an error) a warning is returned �n value[[3L]](cond) : invalid year : year

Examples

1
2
3
4
5
6
c <- fars_read_years(2015)
c
c <- fars_read_years(c(2015,2014))
c
c <- fars_read_years(c(2015,2021))
c

vanzanden/coursera3week4 documentation built on March 19, 2018, 3:05 a.m.