function_3: function_3

Description Usage Arguments

View source: R/function_3.R

Description

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).

Usage

1
function_3(df, year)

Arguments

df

This is the data frame you want to use.

year

Choose a year you are interested in.


hp2500/MDSHW5 documentation built on March 6, 2019, 7:27 a.m.