fars_read: Read a delimited file

Description Usage Arguments Details Value Examples

Description

This function reads a file in a tibble format and creates a data frame from it. In the data frame, cases correspond to rows and variables to columns in the file.

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the path to a file.

Details

First, the function will check if the file named by the argument exists. If it does not, an error will be thrown indicating the specified file does not exist. If the file name is valid, the function reads the data and converts it into tibble format.

Value

This function returns a tibble of the specified data file. Using a missing or invalid value for a file or path name will result in an error.

Examples

1
fars_read("accident_2013.csv.bz2")

jrwinget/Rfars documentation built on May 17, 2019, 12:11 a.m.