fars_read: Import a file given its name

Description Usage Arguments Value Examples

Description

Given a file name, this function imports a file in CSV format and converts it in a object with the classes "tbl_df", "tbl" and "data.frame". Otherwise, it stops the execution an returns an error message.

Usage

1
fars_read(filename)

Arguments

filename

a charcater string specifying the file name

Value

This function returns an object with the classes "tbl_df", "tbl" and "data.frame".If the file doesn't exist in the working directory, it will stop the execution and return an error message

Examples

1
2
3
4
## Not run: 
data_2013 <- fars_read("accident_2013.csv.bz2")
data_2013
## End(Not run)

Juanin2691/fars documentation built on May 9, 2019, 3:26 a.m.