Internal soundgen function
matchColumns(matrix_short, nCol, padWith = 0)
input matrix
the required number of columns
the value to pad with, normally 0
or NA
Adds columns of zeros or NA to a matrix (attaching them both left and
right), so that the new number of columns = len
# NOT RUN {
a = matrix(1:9, nrow = 3)
soundgen:::matchColumns(a, nCol = 6, padWith = NA)
# }
Run the code above in your browser using DataLab