fars_read: Data Input as Data Frame

Description Usage Arguments Details Value Examples

Description

Reads a file in .csv format and creates a tibble data frame.

Usage

1
fars_read(filename)

Arguments

filename

A character string ending in .csv giving the file name of the data to be read into R as a data frame

Details

If filename does not match an existing file, function will return an error: "file filename does not exist".

Value

This function returns a dataset as a tibble data frame. As a side effect, this function prints the data frame, unless coerced as an object.

Examples

1
2
## Not run: fars_read(accident_2013.csv)
## Not run: fars_read(accident_2014.csv)

mahonmb/FARSfun documentation built on May 29, 2019, 11:40 a.m.