Description Usage Arguments Value Author(s) Examples

This is a function that creates correlation matrix objects that can be printed with the corresponding N and p-values. It is a wrapper for cor and cor.test.

1 2 3 4 5 6 |

`x` |
x is a matrix/ |

`y` |
y is a matrix/ |

`method` |
Method used to compute correlations. |

`alternative` |
Unilateral ( |

`exact` |
Logical value to know if a p.value is exact or
asymptotic. See |

`use` |
Methods to deal with missing values. |

`continuity` |
Logical value to know if continuity correction
must be used. See |

`...` |
Unused in this function |

`data` |
data.frame to use in conjuction with formula |

`toLatex` |
Logical value to know if output displayed as a latex tabular environment. |

`cutstr` |
Optional digits that cut the length of variable names |

`toMarkdown` |
Logical value to know if output should be displayed as a markdown table for report |

Returns a list with correlations, N for each pair of correlations and p.value for each correlations.

Charles-Édouard Giguère

1 2 3 4 | ```
require(CUFF)
X=rnorm(10)
Y=rnorm(10)
correlation(cbind(X,Y))
``` |

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.