soundgen (version 1.5.0)

matchColumns: Match number of columns

Description

Internal soundgen function

Usage

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 zeros or NA to a matrix (attaching them both left and right), so that the new number of columns = len

Examples

Run this code
# NOT RUN {
a = matrix(1:9, nrow = 3)
soundgen:::matchColumns(a, nCol = 6, padWith = NA)
# }

Run the code above in your browser using DataLab