search for: ags1

Displaying 1 result from an estimated 1 matches for "ags1".

Did you mean: ads1
2010 May 11
3
Improving loop performance
R-users, I have the following piece of code which I am trying to run on a dataframe (aga2) with about a half million records.  While the code works, it is extremely slow.  I've read some of the help archives indicating that I should allocate space to the p1 and ags1 vectors, which I have done, but this doesn't seem to improve speed much.  Would anyone be able to provide me with advice on how I might be able to speed this up? p1 <- character(dim(aga2)[1]) ags <- character(dim(aga2)[1]) for (i in 1:dim(aga2)[1]) {  if (aga2$first.exon[i]==TRUE)  {   ...