[R] assign data to objects
Yu-Ling Wu
yuling5 at yahoo.com
Wed Mar 21 02:25:57 CET 2001
Hi,
I want to write the data returning from each loop to
temp1, temp2, ... , temp10. However, I got error
message as below:
Error: Target of assignment expands to non-language
object
Please help me with this.
Thanks,
Yu-Ling Wu
==CODE===============================================
stime = 23
for (i in 1:10) {
paste("temp", i, sep="") <- sqlQuery(myConnect,
paste("select action, count from DB1 where utime=",
stime, " group by action")
stime = stime + 60
}
=====================================================
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list