matchColumns: Match number of columns

Description Usage Arguments Details Examples

Description

Internal soundgen function

Usage

1
matchColumns(matrix_short, nCol, padWith = 0)

Arguments

matrix_short

input matrix

nCol

the required number of columns

padWith

the value to pad with, normally 0 or NA

Details

Adds columns of zeroes or NA to a matrix (attaching them both left and right), so that the new number of columns = len

Examples

1
2
a = matrix(1:9, nrow = 3)
soundgen:::matchColumns(a, nCol = 6, padWith = NA)

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.