fars_read: "fars_read"

Description Usage Arguments Details Value Note Examples

Description

This is a function that loads a csv file (specified using the filename argument) and returns it as tibble.

Usage

1
fars_read(filename)

Arguments

filename

a character vector of length one which specifies the data path and/or filename which should be loaded.

Details

This function is a wrapper for the read_csv and tbl_df functions. Therefore the dplyr and readr package has to be installed and loaded.

Value

This function returns a tibble with the contents of the csv. file

Note

If the filename argument does not represent a file an error occurs.

Examples

1
2
## Not run:  mydata <- fars_read("accident_2013.csv")
## Not run: myData <- fars_read("accident_2014.csv")

floasdf/finalAssignment documentation built on May 6, 2019, 4:59 p.m.