fars_read: Load CSV file into a tibble

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function reads CSV file defined by filename, a main argument of the function, and returns a tibble (data.frame).

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the path and name of the CSV file

Value

This function returns a tibble (data.frame) of the input file

Note

This function will give error if the file path is incorrect or file does not exist

Examples

1
2
fars_read(system.file("data", "accident_2013.csv.bz2", package = "fars"))
accident_2014 <- fars_read(system.file("data", "accident_2014.csv.bz2", package = "fars"))

androsova/fars documentation built on June 3, 2017, 7:06 p.m.