fars_read: Reads the CSV data from FARS accidents file

Description Usage Arguments Value

View source: R/fars_functions.R

Description

The function is generic which can read data from any CSV file located at the given path and returns the data as tibble to the caller.

Usage

1
fars_read(filename)

Arguments

filename

The string filename located at current working directory or the path along with filename. In case an incorrect filename or path is provided, it will prompt an error file does not exist. It may also prompt for error when file exists but data is non-csv.#'

Value

This function returns the data with value type as tibble in case the file exists or prompts an error that the file does not exists

examples fars::fars_read(make_filename(2013))


akbarpunjwani/msdr-rpkgexample documentation built on Feb. 22, 2021, 3:59 a.m.