fars_read: Read in data file in csv format and convert to tibble

Description Usage Arguments Value Note Examples

Description

This is a function that imports a comma-separated values file from the working directory via read_csv from readr. After import, the data object is converted to tibble format via tbl_df from dplyr.

Usage

1
fars_read(filename)

Arguments

filename

A character vector matching the name of the file to be imported

Value

This function returns a dataset in tibble format. As a side effect, this function also prints the tibble.

Note

If the file does not exist in the working directory, the function will return an error.

Examples

1
## Not run: fars_read("accident_2013.csv")

HaydenMacDonald/farsr documentation built on May 27, 2019, 9:34 a.m.