fars_read: Read "FARS" data file

Description Usage Arguments Value Examples

Description

This is a simple function that reads csv data file using read_csv from readr package. The function begins with checking whether the filename provided to the function as input exists before reading it as a dataframe in r.This function has been customized NOT to display the progress report on reading time in an interactive session.Additionally, while creating the data in R session, this function ignores all simple messages in the context

Usage

1
fars_read(filename)

Arguments

filename

A character sting specifying the pathname of the file located in the local computer.

Value

This function returns a dataframe in R session after reading the filename provided as parameter of the function

Examples

1
2
3
4
## Not run: 
fars_read("~/data/accident_2013.csv.bz2")

## End(Not run)

mnazhasan/FarsRpkg documentation built on May 23, 2019, 5:06 a.m.