cor | R Documentation |
Correlation Structure
cor(
data,
vars,
type = "pearson",
mat = TRUE,
missing = "pairwise.complete.obs",
order = "hclust",
method = "complete",
k = 2,
size = 3,
color = "blue",
plot = FALSE,
method1 = "circle",
type1 = "full",
width = 500,
height = 500
)
data |
The data as a data frame. |
vars |
. |
type |
. |
mat |
. |
missing |
. |
order |
. |
method |
. |
k |
. |
size |
. |
color |
. |
plot |
. |
method1 |
. |
type1 |
. |
width |
. |
height |
. |
A results object containing:
results$instructions | a html | ||||
results$matrix | a table | ||||
results$plot | an image | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$matrix$asDF
as.data.frame(results$matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.