[R] Row binding
Patrick Burns
pburns at pburns.seanet.com
Thu Jun 10 11:37:20 CEST 2010
See 'The R Inferno' Circle 2 for why
this takes so long, and what to do
about it.
On 10/06/2010 08:35, makhdoomi wrote:
> hello
> i use the following code,but it is talking too much time to execute. It
> there any alternate code for the same.
> ##############################
> ############
>> names(bimas_epitopes)
>> dim(bimas_epitopes)
>> z6<-NULL;for ( i in 1:1496837) { if (bimas_epitopes[i,7]>39.99 )
> z6<-c(z6,i)}
>> length(z6)
> 112301
>> temp6<-NULL
>> temp6<-z6[1]
>> result6<-bimas_epitopes[temp6,]
>> for ( i in 2:112301) {
> temp6<-z6[i];result6<-rbind(result6,bimas_epitopes[temp6,])}####this code is
> talking toooooo much time for row binding########
> #############################################
> need the alternate if u can help.
>
--
Patrick Burns
pburns at pburns.seanet.com
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')
More information about the R-help
mailing list