dth_cor | R Documentation |
X-Y Correlation and Statistical Tests for multiple categories using data.table
dth_cor( DT, x, y, by, method = "spearman", alternative = "two.sided", exact = NULL, conf.level = 0.95, continuity = FALSE, trim = TRUE )
DT |
|
x |
|
y |
|
by |
|
method |
|
alternative |
|
exact |
|
conf.level |
|
continuity |
|
trim |
require(data.table) DT <- as.data.table(iris) # uses spearman method by default dth_cor(DT, x = 'Sepal.Length', y = 'Sepal.Width', by = 'Species') # set trim = F if you want all the extra information (mostly useless) dth_cor(DT, x = 'Sepal.Length', y = 'Sepal.Width', by = 'Species',trim = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.