fars_read: Load CSV File

Description Usage Arguments Value Examples

Description

This is a simple function that loads a csv file (using the filename argument) and converts it into a dataframe. An error is thrown if the file specified by filename does not exist.

Usage

1
fars_read(filename)

Arguments

filename

A character string that specifies a the location and name of the file to be loaded by this function

Value

This function returns a dataframe or tibble.

Examples

1
2
3
4
5
6
## Not run: 
accident_2013 <- fars_read("~/data/accident_2013.csv.bz2")
accident_2014 <- fars_read("~/data/accident_2014.csv.bz2")
accident_2015 <- fars_read("~/data/accident_2015.csv.bz2")

## End(Not run)

swethagarimalla/FARS documentation built on May 24, 2019, 7:16 a.m.