Your input for this function should be an individual year. Your function should limit the data for that year to include numeric continuous variables only (not categorical data). Your output should be the correlation matrix for all numeric variables in the data for that year. (Hint: use cor(data) to create correlation matrix. If you feel adventuresome, then you can return a correlogram plot from here (Links to an external site.)Links to an external site. instead).

1 | ```
function_3(df, year)
``` |

`df` |
This is the data frame you want to use. |

`year` |
Choose a year you are interested in. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.