fars_read: FARS (Fatality Accident Reporting System) Read File

Description Usage Arguments Value

View source: R/fars_functions.R

Description

fars_read(filename) checks the existence of the file (based on the filename supplied in the parameter), reads the file, and loads the file as a data frame and S3 class "tbl_df" from dplyr package.

Usage

1
fars_read(filename)

Arguments

filename

String characters used to read the file. This parameter takes the output of make_filename function. Although the filename can be created as a string input into the function as a parameter, any mis-spelled component or mis-specified filename will result in an error.

Value

output of this function is a dataframe and S3 class tbl_df from dplyr package.


MoRudyKim/farsfunc documentation built on May 28, 2019, 1:54 p.m.