This function accepts a numberic input of either one or multipe years, then collects the month and year columns from the corresponding data file. If the year or one of the years are not searchable, the function will throw a warning and a NULL output.
uses fars_read() function to create one or more tibble data frames that matches the year of the file name created with the make_filename() function. each tibble df will contain two columns, month and year. In the event that the year entered does not pull a valid data file, a warning will be generated as well as a "NULL" value.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.