fars_read: fars_read

Description Usage Arguments Details Value Note See Also Examples

View source: R/fars_functions.R View source: R/fars_read.R

Description

The function fars_read read a csv file if it exists and forwards the argument a data frame.

The function fars_read read a csv file if it exists and forwards the argument a data frame.

Usage

1
2
3
fars_read(filename)

fars_read(filename)

Arguments

filename

to enter a database with format csv.

Details

There functions used a database to create maps according a specific location.

you need install packages like dplyr and readr before this or it may result in an error

you need install packages like dplyr and readr before this or it may result in an error

Value

if file exists, this function read the file and return a database as a data frame. If the extension is diferent to csv, it can not read the file.

if file exists, this function read the file and return a database as a data frame. If the extension is diferent to csv, it can not read the file.

Note

To generate a file name, use make_filename.

See Also

make_filename

Examples

1
2
## Not run: fars_read("accident_2013.csv.bz2")
## Not run: fars_read(filename = "accident_2013.csv.bz2")

RG9303/Project-RG-Package documentation built on June 16, 2020, 3 p.m.