fars_read: Read file

Description Usage Arguments Details Value Note Examples

Description

Read file

Usage

1
fars_read(filename)

Arguments

filename

A character containing the file name

Details

This is a simple function that expects a csv filename as argument, checks if the file exists and if it exists it reads the file to an object and converts it to a data frame.

Value

This function returns a dataframe containing the data from the csv file passed by filename

Note

Note that this function fails if the filename is not passed as argument.

Examples

1
2
3
4
5
## Not run: 
fars_read()
fars_read(accident_2015.csv.bz2)

## End(Not run)

SatishDivakarla/FarsPackage documentation built on May 9, 2019, 1:18 p.m.