fars_read: Read Fatality Analysis Reporting System file

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Imports the specified file and returns the data as a tibble object.

Usage

1
fars_read(filename)

Arguments

filename

Path to the file to read

Value

a tibble containing the data of interest

Note

Results in an error if the provided file doesn't exist. Only a single string can be provided at once.

Examples

1
2
3
4
5
6
7
## Not run: 
df <- fars_read("accident_2013.csv.bz2")

# this doesn't work
df <- fars_read(c("accident_2013.csv.bz2","accident_2014.csv.bz2"))

## End(Not run)

GiuliaPais/BuildingRpackagesFinalAssigment documentation built on June 28, 2020, 12:22 a.m.