fars_read: Read a given file into R

Description Usage Arguments Value Note Examples

Description

This is a function that reads a given filename, given by the filename argument into R using the read_csv function from the readr packages and then returning the read in table as a tbl_df object from the dplyr package.

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the name of the file to read into the session

Value

This function returns a tbl_df object from the dplyr package

Note

Calling this function with a filename that does not exist in the working director will result in an error. This function is called by the make_filename function and usually not called on its own.

Examples

1
## Not run: fars_read('accident_2013.csv.bz2')

milandv/courserafars documentation built on May 26, 2019, 6:36 a.m.