fars_read: Print "Read FARS Accident Data"

Description Usage Arguments Value Note

View source: R/fars_functions.R View source: R/fars_functions.R

Description

This is a basic method that reads the file corresponding to the name which a user enters during function call in a seperate function.

Usage

1
fars_read(filename)

Arguments

filename

The function argument which stores the name of file the user wants to read, as a string object.

data

A variable that stores the csv file read as a dataframe.

Value

This function returns the csv file read as a dataframe table object.

Note

An error message will be thrown if the file does not exist.

The user may customize this message inside the "stop" command of the function (edit quoted statements inside stop argument).


Urmimala-Nath/courseraAccFARS documentation built on July 30, 2020, 4:28 a.m.