fars_read: Read FARS data

Description Usage Arguments Details Value Errors See Also Examples

View source: R/fars_functions.R

Description

Reads a .csv file containing FARS data into a tibble

Usage

1
fars_read(filename)

Arguments

filename

path to the file

Details

This function takes the path to a file containing FARS data. The FARS data is in .csv.bz2 format, which will be decompressed and read automatically into a tibble.

Requires the readr and tibble packages.

Value

a tibble

Errors

Will raise an error if the file is not found

See Also

fars_read_years(), fars_summarize_years(), fars_map_state()

Examples

1
2
3
4
## Not run: 
fars_data <- fars_read("path/to/fars_data.csv")

## End(Not run)

csprock/myRpackage documentation built on Nov. 30, 2021, 8:03 a.m.