fars_read: Reads .csv file as table

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This is a simple function to read a csv file. First, it checks if the given filename exists. If it exists, it reads it. Then it converts the resulting data frame to table.

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the file name to be read

Value

This function returns to a table frame including the info from the given filename.

Note

If the file for the given year does not exist, it turns into a warning.

Examples

1
2
3
4
## Not run: 
tbl_data <- fars_read('accident_2013.csv.bz2')

## End(Not run)

cemreyilmaz/tester documentation built on Dec. 19, 2021, 2:54 p.m.