fars_read: Reads the data from a file

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a simple function that, reads the data from a file specified by the filename argument. The functions stop in case of no files found. The files should contain a CSV formatted data. The data read is returned as a data frame.

Usage

1
fars_read(filename)

Arguments

filename

The name of the file to process. The file should exist and should be a CSV data file.

Value

This function returns a data frame containing the data of the file processed.

Examples

1
2
3
4
## Not run: 
fars_read(filename="accident_2014.csv.bz2")

## End(Not run)

cogitoergoread/fars documentation built on Jan. 25, 2020, 1:12 p.m.