[datatable-help] Simple script does not finish

hello_R shariful at excite.com
Tue Jan 5 13:08:03 CET 2016


Hi all,
I have a dataframe (512x512). I just want to create a new dataframe from it.
I used the following code. It does not stop running! Could you please help.
Thanks

# Read the text file (512x512)
df<-read.table("out_1_1.txt")

d=NULL
for (i in 0:511){
  for (j in 0:511){
    Myrow<-c(i,j,df[i+1,j+1])
    d=rbind(d,Myrow)
  }
} 



--
View this message in context: http://r.789695.n4.nabble.com/Simple-script-does-not-finish-tp4716162.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list