Skip to content
Prev 333849 / 398506 Next

mat2listw function

On Nov 30, 2013, at 1:43 AM, Jim Lemon wrote:

            
The second thing to do (since I wonder if an NA value would provoke that error) is to run 

class(matrix)

I'm guessing it's not a matrix and perhaps a dataframe. In which case then run:

lapply(matrix, class) to see if the columns are "numeric". I'm guessing they may be "factor".