fars_read: Print glimpse about motor vehicle accidents in the US

Description Usage Arguments Details Value Note Examples

Description

fars_read reads and prints dataframe of the mentioned file name from the working directory if it exists

Usage

1
fars_read(filename)

Arguments

filename

A character string indicating the file name of dataframe and suffixed with .csv

Details

This function checks if the filename (using the filename) mentioned as the function argument exists in the working directory.

Value

If the filename doesn't exist then this function prints that the filename does not exists. Otherwise it prints the tibble with first 10 rows and few fields in tabular form and remaining field names in text

Note

filename mentioned without quotes " " will get considered as invalid file arguments

Examples

1
2
3
4
## Not run: 
fars_read("accident_2013.csv")
fars_read("accident_2015.csv")
## End(Not run)

amolz/AnalyzeFatalities documentation built on May 23, 2019, 6:03 a.m.