fars_read: Check the existenence of a file and read it

Description Usage Arguments Value Examples

Description

This function takes as only argument a filename and first check if the inputted filename exists. If the file does not exist in current working directory an error message is given, otherwise the file is read as a dataframe

Usage

1
fars_read(filename)

Arguments

filename

The name of the file to be read. The filename should be built with the "make_filename" function.

Value

This function returns a tibble (dataframe). If the filename provided as argument is wrong or the file is not present in current working directory, the function returns an error message.

Examples

1
## Not run: data2013 <- fars_read("accident_2013.csv.bz2")

ricrossi/qfars documentation built on May 29, 2019, 1:19 p.m.