rearrangeM {foodwebWrapper}R Documentation

rearrangeM

Description

rearrange the order of rows or columns of matrix based on entries in a vector

Usage

rearrangeM(m, v2)

Arguments

m

character matrix return value of concatPackFunc2()

v2

list whose components are package names for permuting order of m, return value of consolidate()

Value

returns rearranged version of m

Examples

if(interactive()){
load("data/x_m.RData")
load("data/x_v2.RData")
m2<-rearrangeM(x_m,x_v2)
}


[Package foodwebWrapper version 1.1.0 Index]