fars_read: Read file

Description Usage Arguments Value Note Examples

Description

This is a function which reads the FARS data from a csv file into a dataframe and converts it into a tbl_df object

Usage

1
fars_read(filename)

Arguments

filename

A character string which is the name of the csv file with the FARS data

Value

This function returns the FARS data in a tbl_df object

Note

If the filename does not exist, the function stops with an error message.

Examples

1
2
filename<-system.file("extdata","accident_2013.csv.bz2",package="FARSanalysis")
fars_read(filename)

leigitcode/FARSanalysis documentation built on May 21, 2019, 3:06 a.m.