cormat | R Documentation |
This function creates a correlation (cormat) on a data frame of the variables in an equation.
cormat(df, formula)
df |
data frame to read in. |
formula |
the variables in the regression model, |
This function returns a correlation matrix for the variables provided in the formula.
data <- mtcars
cormat(data, mpg ~ wt + am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.