cor_table | R Documentation |
Get correlation between columns
cor_table(
dt,
method = c("pearson", "spearman")[1],
upper_triangle = TRUE,
decimals = 2,
melt = TRUE,
na.rm.melt = TRUE
)
dt |
a data.table |
method |
c("pearson", "spearman")[1] |
upper_triangle |
logical, default TRUE. Make lower triangle values NA. |
decimals |
numeric, default 2. How many decimals for correlation |
melt |
logical, default TRUE. |
na.rm.melt |
logical, default TRUE. Remove NA values from melted table. |
a data.table with 3 columns, Var1, Var2 and Cor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.