fars_read: Read csv file into R

Description Usage Arguments Value Warnings Author(s) Source References Examples

Description

This function loads a csv file in R and converts it to a data frame tbl

Usage

1
fars_read(filename)

Arguments

filename

The name of the csv file to load in R

Value

a data frame tbl Returns file filename does not exits if the file can not be found or the directory is not properly set

Warnings

This function can only handle csv files from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System

Author(s)

Bella V. (Documentation only)

Source

https://www.coursera.org/learn/r-packages/peer/25XGp/documenting-code

References

Peer Assignment in Coursera Course "Building R Packages"

Examples

1
2
3
4
## Not run:   
fars_read("accident_2013.csv.bz2")

## End(Not run)

ivalette/faRs documentation built on May 18, 2019, 7:12 a.m.