fars_read: fars_read

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function reads a csv file form a given directory, to a data table data frame

Usage

1
fars_read(filename)

Arguments

filename

A character string giving directory and name of the csv file which is needed to be read

Value

This function returns a data.frame, if the filename does not exist either for wrong name or wrong directory, returns error.

Examples

1
2
## Not run: fars_read("accident_2013.csv.bz2")
## Not run: fars_read("data/accident_2013.csv.bz2")

Motiche/FARS documentation built on Dec. 17, 2021, 4:21 a.m.