Re: [R] help in long loops

2007-11-12 Thread jim holtman
What happens if you have multiple matches in the comparison between the content_feat and ob_feat? Why don't you just iterate through the content_feat and use 'match' to find the corresponding match in ob_feat? This should speed it up. Also why are you using 'as.matrix' when the values in the 'if

[R] help in long loops

2007-11-12 Thread Mahmudul Haque
hi, please help me out in the following case. seems like it stuck in some where(already 7 hrs passed). what I want is to combine 4 matrix in to one matrix of desired length. final_matrix<-function(ob_feat,content_feat,link_feat,link_feat_transformed){ complete_feat<-matrix(rep(-1),nrow=11402,nc