fars_read: This function use the read_csv function in the package readr....

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function use the read_csv function in the package readr. It reads a single csv file into R for analysis. the packages readr and dplyr should be installed.

Usage

1
fars_read(filename)

Arguments

filename

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

Value

An R object of class data.frame

Note

If the file does not exist at the path it will create an error

Examples

1
2
3
4
5
6
## Not run: 
path <- "accident_2013.csv.bz"
fars_read(path)
fars_read("accident_2013.csv.bz")

## End(Not run)

lorenzo-arturo/farspackage documentation built on June 13, 2020, 12:24 a.m.