Description Usage Arguments Value Examples

This function simply uses sort.list function in R. The reason for using it is that one wants the sort to carry along all columns.

1 | ```
sort_matrix(x, j)
``` |

`x` |
An input matrix with several columns |

`j` |
The column number with reference to which one wants to sort |

A sorted matrix

1 2 3 | ```
set.seed(30)
x=matrix(sample(1:50),ncol=5)
y=sort_matrix(x,3);y
``` |

generalCorr documentation built on May 19, 2017, 6:08 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.