rscharpf/MinimumDistance — Issue #9: madFromMatrixList
Author: syounkin
Created: 2012-01-25 20:31:28+00:00
State: open

I was getting an error in madFromMatrixList when byrow = TRUE because my object was a list containing one vector. So, dim(mad[[1]]) was NULL and thus it could not assign rownames. I avoid the problem by adding !is.null(dim(mads[[1]])) to the qualifying if statement.

Is it ever the case that dim(mads[[1]]) is not NULL?

How do you want to handle this?