Learn R Programming

foodwebWrapper (version 1.1.0)

removeZeroRowsCols: removeZeroRowsCols

Description

delete rows and cols of matrix m that contain all "0"s

Usage

removeZeroRowsCols(m)

Value

returns an altered version of character matrix m with removed rows and columns

Arguments

m

character matrix whose entries are either "0" or "1"

Examples

Run this code
if(interactive()){
load("data/x_m2.RData")
m3<-removeZeroRowsCols(x_m2)
}

Run the code above in your browser using DataLab