fars_read: CSV data import

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function takes a file name a input to read .csv-files and imports the file in case it is available and returns a data frame as a tibble. Messages caused by the import are suppressed and the progress bar is turned off. In case the file does not exist, the program stops and prints out that the file does not exist.

Usage

1
fars_read(filename)

Arguments

filename

A character string containing the path and the file name of a csv.-file.

Value

This function returns the imported file as a tibble data frame.

Note

The function stops if the file name provided does not exist.

Examples

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

## End(Not run)

PatGruetter/FARSPackage documentation built on Dec. 23, 2019, 7:34 p.m.