fars_read: Week 2 - Assignment

Description Usage Arguments Value Examples

View source: R/fars.R

Description

This functions will read just only one archive. The input of this function is the filename to be imported. These archive has data of the US National Highway Traffic Safety Administration's, and this is a csv file. Keep in mind that the filename will be generate by the make_filename function.

Usage

1
fars_read(filename)

Arguments

filename

Is a character string which represents the archive's name.

Value

This functions returns a data frame of the imported data in case of an invalid name it will return a message error "file XXXX does not exist".

Examples

1
## Not run: fars_read(filename = "accident_2013.csv.bz2")

Vaibhav291086/Vaibhav291086-Building_R_Packages documentation built on Dec. 18, 2021, 6:14 p.m.