[R] Mystery!!!

arun.gurubaramurugeshan arun.gurubaramurugeshan at Autozone.com
Thu Jun 28 15:51:32 CEST 2012


I am executing the following loops in R 15.1.0 and the first one works and
produces results. However, the second one is not with initiating the object
as x[i]. Further, I was able to get the second loop work in R 15.0. Am I
missing something here?

for(i in 1:length(b))
{y[i]<-paste(a,b[i],c,sep="")
print(y[i])
print(fromJSON(file=y[i],method="C"))
}

for(i in 1:length(b))
{x[i]<-paste(a,b[i],c,sep="")
print(x[i])
print(fromJSON(file=x[i],method="C"))
}


Thanks
Arun

--
View this message in context: http://r.789695.n4.nabble.com/Mystery-tp4634758.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list