pad: Pad a matrix object with extra rows/columns of 0s.

View source: R/center_graph.R

padR Documentation

Pad a matrix object with extra rows/columns of 0s.

Description

Attempts are made to make this padding efficient by employing sparse graphs

Usage

pad(m, nr, nc = nr)

Arguments

m

matrix

nr

number of rows to add

nc

number of columns to add. (default = nr)

Value

m padded with nr rows and nc columns of zeros.


dpmcsuss/iGraphMatch documentation built on May 22, 2024, 8:52 p.m.