fars_read: Read in FARS File

View source: R/fars_functions.R

fars_readR Documentation

Read in FARS File

Description

This is a function which checks whether a FARS file with a certain file name exists. An error will be thrown if a file by the user-supplied file name does not exist. If said file does exist, it will be read into R and transformed into a tibble.

Usage

fars_read(filename)

Arguments

filename

A character string giving the name of the FARS file.

Value

This function returns a tibble of the data contained in the file named filename and prints the first 10 rows of the tibble.

Examples

## Not run: fars_read("accident_2014.csv.bz2")
## Not run: fars_read("accident_2013.csv.bz2")


haliyan/fars.functions documentation built on May 9, 2022, 8:30 p.m.