fars_read: Read FARS file

Description Usage Arguments Details Value Examples

Description

This is a simple function that reads in a file (called filename) and returns a data file. The function expects the file to be in a CSV format.

Usage

1
fars_read(filename)

Arguments

filename

A file name for the function to read in

Details

It checks to make sure the file exists first, and generates an error if it does not.

Value

This function returns the file as a data file.

Examples

1
2
3
4
5
6
7
## Not run: 
fars_read("inputfile.csv")
fars_read("accident_2001.csv")
fars_read(filenamevar)
fars_read("madeupfile.ext")

## End(Not run)

JamasEnright/FARS documentation built on May 7, 2019, 10:19 a.m.