corTest | R Documentation |
Correlation analysis for each row (each to each) between two data-frames.
corTest(x, y, method = "both", adj_method = "BH", rm0 = TRUE, verbose = TRUE)
x |
data.frame. |
y |
data.frame. |
method |
character. 'pearson', 'spearman' or 'both'. Default 'both' |
adj_method |
character. choose one method in |
rm0 |
logical. whether remove 0 in each analyse. Default TRUE. |
verbose |
logical. Print progress. Default is TRUE |
a correlation results data.frame
treatment = data.frame(S1 = sample(10, 5), S2 = sample(10, 5), S3 = sample(10, 5)) control = data.frame(S4 = sample(20, 5), S5 = sample(20, 5), S6 = sample(10, 5)) result = corTest(treatment, control, method = 'pearson') head(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.