fars_read: Read CSV file into a tibble

Description Usage Arguments Value Examples

Description

This is a simple function which first reads 'filename' file in the working directory and then outputs it as a tibble. You can input filename (using the filename argument). It the file does not exist in the working directory, the function will stop and print an error message; otherwise the function will call 'read_csv' function in "readr" package and 'tbl_df' function in "dplyr" package to read and transform the file into a tibble.

Usage

1
fars_read(filename)

Arguments

filename

The name of the file you want to process

Value

The function returns the content of the file in a tibble

Examples

1
fars_read("../data/accident_2013.csv.bz2")

askia318/CSVProcess documentation built on May 5, 2019, 3:48 p.m.