fars_read: Function 'fars_read': Read file into a dplyr's data frame tbl

Description Usage Arguments Value Examples

Description

This function reads a file by firstly checking that a file with that name exists and if it does, it converts it into a data frame table You must use system.file("extdata", "filename", package = "fars2") as the argument of the function to load the package internal data set

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the file's name the function will read

Value

This function returns a error message either if the file's name does not exits or a data frame table representing the data of the file

Examples

1
fars_read(system.file("extdata", "accident_2015.csv.bz2", package = "fars2"))

pez-espada/fars2 documentation built on May 14, 2019, 8:02 a.m.