fars_read: Function to read fras files

Description Usage Arguments Details Value

View source: R/fars_functions.R

Description

Function to read FARS file.

This function uses readr and dplyr packages. It takes a CSV file as an input filename parameter. If the file does not exist in the working directory, this function stops with an output message that the file does not exist. If the file exists, this function reads it into dataframe object. It suppresses messages and progress bar while reading the file.

Function to load a CSV dataset into a dataframe

Usage

1
fars_read(filename)

Arguments

filename

Path to file

Details

Dataset must accomplish the FARS structure

Value

The dataframe generated Error if file doesn't exist


Grandez/fars documentation built on May 6, 2019, 6:30 p.m.