fars_read: Reading a .csv or .csv.bz2 file into R

Description Usage Arguments Value Examples

View source: R/fars_read.R

Description

fars_read This function is a wrapper fro the read_csv function in the package readr. It reads in a single csv file into R for analysis. For this to work the file should be a .csv or a .csv.bz2 file located in the same directory as the working directory and the package readr and dplyr should be installed.

Usage

1
fars_read(filename)

Arguments

filename

A chararcter string denoting the .csv or .csv.bz2 file to be read into R.

Value

an R object of class "tbl_df", "tbl", "data.frame".

Examples

1
2
3
fars_read("accident_2013.csv")
fars_read("accident_2014.csv")
fars_read("accident_2015.csv")

DocOfi/FARSread-Package documentation built on May 21, 2019, 3:07 a.m.