fars_read: 'fars_read' function reads a csv file as a dataframe the...

Description Usage Arguments Value Examples

View source: R/fars_functions3.R

Description

fars_read function reads a csv file as a dataframe the function takes a string argurment which is the name of the data filename if it does not exist, it will generate an error like this: "File 'filename' does not exist" otherwise, the function will recognise the data and will read the filename as a dataframe

Usage

1
fars_read(filename)

Arguments

filename

A string character that represents a data filename in csv format to be read

Value

A data frame read from the filename argument using the dplyr package. If it does not exists, it will throw an error

Examples

1
2
3
fars_read("accident_2013.csv.bz2")
fars_read("accident_2014.csv.bz2")
fars_read("accident_2015.csv.bz2")

johans27/fars3 documentation built on May 25, 2019, 6:24 p.m.