fars_read: Read fars data

Description Usage Arguments Details Value Examples

Description

This is a simple function that reads a csv data file into R.

Usage

1
fars_read(filename)

Arguments

filename

string

Details

If the file does not exist it will generate an error message.

Value

This function returns a table data frame.

Examples

1
2
3
4
5
6
library(dplyr)
library(readr)
library(tidyr)
f13path<-system.file("extdata", "accident_2013.csv.bz2", package = "farsfuncs")
file.copy(from=c(f13path),to=getwd())
fars_read("accident_2013.csv.bz2")

Moonglum8/farsfuncs documentation built on May 7, 2019, 4:59 p.m.