get_correlation_list | R Documentation |

Calculate Pearson correlation coefficient within each group.

get_correlation_list(x, group_labels)

`x` |
A n by p matrix. |

`group_labels` |
A vector of length n, indicating the group of rows. |

An array of Pearson correlation coefficient for each row, rows belong to the same group have same values.

get_correlation_list(x = matrix(rnorm(5*10),5,10), group_labels = c(rep(1,2),rep(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.