fars_read: FARS data reading in CSV format

Description Usage Arguments Details Value Examples

Description

fars_read is a simple wrapper function for reading Comma-seperated Value (CSV) files with basic file handling and limited user interaction.

Usage

1
fars_read(filename)

Arguments

filename

A character object which corresponds to a valid path of the data file.

Details

fars_read is a helper function for fars_summarize_years and fars_read.

In case the file does not exist an error message is produced and execution stops.

Value

A object of the tbl_df class filled with data from specified file.

Examples

1
2
3
4
 
 library(farspkg)
 fh<-fars_read("accident_2013.csv.bz2")
 

umutkahramankaptan/farspkg documentation built on May 8, 2019, 1:24 p.m.