fars_read: Read CSV into R

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This is a function that takes the filename of a .csv file as an argument and returns that file loaded into R as a tibble.

Usage

1
fars_read(filename)

Arguments

filename

The filename of the .csv file you want to import

Details

For this function to work properly, a file must exist at the path specified by the argument.

Value

This function returns an R tibble containing the data from the .csv file that was read in. This function will return Error in file.exists(filename) : invalid 'file' argument if no file exists at the filepath specified as the filename argument.

Examples

1
2
## Not run: fars_read("coursera/data/accident_2013.csv.bz2")
## Not run: fars_read("data.csv")

alexmjn/advancedr documentation built on May 29, 2019, 5:57 p.m.