fars_read: Read csv file into tibble

Description Usage Arguments Value Note Examples

View source: R/fars_functions_documentation_v2.R

Description

This function allows to read data from any csv file. Specifically, however, the function is used to read data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Usage

1
fars_read(filename)

Arguments

filename

A character string with the name of the file.

Value

This function returns the data read in from the file as a tibble, a data frame with class tbl_df.

Note

The file needs to be in the current working directory.

Examples

1
2
3
4
5
fars_read("accident_2013.csv.bz2")
## Not run: 
  fars_read("anyFile.csv")

## End(Not run)

cThErLiLsK/farsvis documentation built on April 9, 2020, 12:26 a.m.