rearrangeM | R Documentation |
rearrange the order of rows or columns of matrix based on entries in a vector
rearrangeM(m, v2)
m |
character matrix return value of concatPackFunc2() |
v2 |
list whose components are package names for permuting order of m, return value of consolidate() |
returns rearranged version of m
if(interactive()){
load("data/x_m.RData")
load("data/x_v2.RData")
m2<-rearrangeM(x_m,x_v2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.