fars_read: Load fars data

Description Usage Arguments Value Examples

Description

This function reads fars data from *.csv.bz2 file, data is saved as a tibble data frame object.See tbl_df for details.

Usage

1
fars_read(filename)

Arguments

filename

single path to file containing fars data, just filename if data is stored in the same directory. If file does not exist function will throw an error.

Value

a tibble data frame object containing fars data

Examples

1
2
3
4
5
6
## Not run: 
# save file in folder named data in working directory
fars_file <- file.path("data", "accident_2014.csv.bz2")
fars2012 <- fars_read(fars_file)

## End(Not run)

pabgamu/firstR documentation built on May 24, 2019, 5:57 p.m.