fars_read: Read csv-data

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This is a function that reads in csv data .

Usage

1
fars_read(filename)

Arguments

filename

Csv file containing data

Details

fars_read reads in csv data.

Value

This function will search within the specified path for the filename provided. If the file exists, it will be imported and returned as a data frame tbl. If it does not exist an error message will be returned.

Examples

1
2
3
4
5
6
7
## Not run: 
data <- fars_read(filename = "./accident_2013.csv.bz2")

file<-make_filename(year=2013)
data<-fars_read(filename = file)

## End(Not run)

GHCoursera/fars documentation built on May 30, 2019, 8:25 a.m.