The function fars_read_years is used to take the year as an input and create a filename using make_filename function. The file is then read using the fars_read function. If the year is invalid it returns an error message
takes a year as input,creates a filename, reads the information, adds a column for year then subsets the information, validates if there is an error and appropriately displays a warning message if an error occurs else returns "NULL"
If an error is generated a warning message "invalid year: " with the invalid year information is displayed. If no error is generated it displays "NULL"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.