fars_read: Reads data from a file and returns a tibble dataframe

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Reads data from a file and returns a tibble dataframe

Usage

1
fars_read(filename)

Arguments

filename

path to the input csv data file, as a character string.

Details

The data type in the columns is automatically parsed by the read_csv function in the readr package. Additional messages and progress are supressed to limit the console output. If the file is not found at the specified path, the function throws an error.

Value

A tibble data frame, enhanced implementation of data.frame (see tibble).

Examples

1
2
3
data2013 <- fars_read('fars_data/accident_2013.csv.bz2')
data2014 <- fars_read('fars_data/accident_2014.csv.bz2')
data2015 <- fars_read('fars_data/accident_2015.csv.bz2')

Roger-Li/farsPackage documentation built on May 25, 2019, 1:28 p.m.