fars_read_years: remain only variable month and year of the choosen dataset

Description Usage Arguments Value Examples

View source: R/fars.R

Description

This is a simple function that remain 2 variables of the accident data file of the year you choose, month and year. When it meets an error, it will return "invaild year: year"

Usage

1

Arguments

years

a vector that contains the year numbers

Value

The function will return new tibbles with 2 columns(monthe and year), or a warning message:invaild year: year and "NULL"

Examples

1
## Not run: fars_read_years(c(2013,2014,2015))

Beryli-122/fars_package documentation built on July 13, 2020, 12:01 a.m.