powered by
A function to double the size of a matrix, with each cell in the original becoming four cells in the expanded matrix.
expand_matrix(m)
A matrix.
matrix
A matrix with the same distribution of values as the original, but doubled in size along both dimensions.
# NOT RUN { m <- matrix(1:6, nrow = 2) expand_matrix(m) # }
Run the code above in your browser using DataLab