I\'m trying to get a matrix of values using replicate(), but when the if() statement returns a NULL, that creates a list instead of a matrix. I\'ve spent time reading web p