fars_read: Read Fatality Analysis Reporting System (FARS) data into a...

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

The function takes a file name or a file path pointing to a FARS data set , checks that the file exists and then reads it into a data frame format. This is a lightweight wrapper around readr::read_csv().

Usage

1
fars_read(filename)

Arguments

filename

a character string giving either the name of or the path to a file containing FARS data

Value

This function returns a tibble data frame.

Note

An error is thrown if the file indicated does not exist.

Examples

1
2
3
4
## Not run: 
fars_read("accident_2013.csv")

## End(Not run)

DragosMG/fars documentation built on Sept. 16, 2021, 12:58 p.m.