fars_read: Read fars data

Description Usage Arguments Details Value Examples

View source: R/farsfuncs.R

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")

sophiasagan/farsfunc2 documentation built on Feb. 7, 2018, 12:14 a.m.