Displaying 1 result from an estimated 1 matches for "event2dichot".
2011 Jun 21
1
working with sparse matrix
Hi, I have a 500x 53380 sparse matrix and I am trying to dichotomize it.
Under sna package I have found event2dichot yet it doesnt recognize sparse
matrix and requires adjacency matrix or array. I tried to run a simple loop
code
for (i in 1:500)
for (j in 1:53380)
if (matrix[i,j]>0) matrix[i,j]=1
yet this takes a lot of time to run, I mean it has been last two hours and
it is stil running.
I am wondering...