fars_read: fars functions for Coursera R package course The fars_read...

Description Usage Arguments Value Note Examples

Description

fars functions for Coursera R package course

The fars_read function imports a file, if it exists, in csv format and converts it to a table. If file does not exist it returns an error.

Usage

1
fars_read(filename)

Arguments

filename

A character string indicating the name of csv file

Value

This function returns a table with data from the loaded file

Note

Function will return error if file does not exist

Examples

1
2
3
4
5
## Not run: 
fars_read(filename="accident_2015.csv.bz2")
t <- system.file("extdata", "accident_2013.csv.bz2", package="fars") fars_read(t)

## End(Not run)

jluthy/Demo-fars_functions documentation built on May 13, 2019, 5:24 p.m.