make_filename: Help function to create a file name string

Description Usage Arguments Value Examples

Description

This is a function that creates a string with the needed structure to be used in fars_read_years function for iterative importing several .csv files

Usage

1

Arguments

year

a number that represents the year of the data to import. the input does not need to be numeric, the function will parse the parameter to integer

Value

This function returns a string, with the following structure: "accident_(year).csv.bz2" the year format in of the type 2001, 2011, this coincides qith the current design of the .csv used for the analysis

Examples

1
2
## Not run: make_filename(1999)
## Not run: make_filename("2013")

blewy/r_package_coursera documentation built on May 7, 2019, 10:38 a.m.