On Tue, Mar 17, 2009 at 12:54 PM, Bill Cunliffe <b...@elevationllc.net>wrote:

>  Thanks for your help.  Part of the problem was that I thought I was
> dealing with a data frame when it was actually an array.  I forced all to be
> matrices for consistency.  However, I see that
>
>
>
> avGain <- rbind(avGain[1:(j-1),],b,avGain[(j+1):nrow(avGain),])
>
>
>
> would be a great solution as positioning is important.
>
>
>
This rbind solution will work, and if b has more than one row is possibly
the best way to do it.  But it will be very slow if you are doing it
iteratively, compared to the direct replacement it sounds like you've
figured out.
cheers,
Levi

-- 
Levi Waldron
post-doctoral fellow
Jurisica Lab, Ontario Cancer Institute
Division of Signaling Biology
IBM Life Sciences Discovery Centre
TMDT 9-304D
101 College Street
Toronto, Ontario M5G 1L7

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to