Description Usage Arguments Details Value Examples

This function computes the correlation between x and y given both are numeric vectors, between the columns of x if it is a numeric matrix, or between the columns of x and y if both are numeric matrixes

1 2 | ```
correlation(x, y = NULL, method = c("pearson", "spearman", "kendall"),
pairwise = FALSE)
``` |

`x` |
Numeric vector or matrix |

`y` |
Optional numeric vector or matrix |

`method` |
Character string indicating the correlation method |

`pairwise` |
Logical, wether columns of x and y should be compared in a pairwise manner. x and y must have the same number of columns |

This function computes correlation and associated p-values

Numeric value, vector or matrix of results

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.