[R] Construct a data.frame in a FOR-loop
Serguei Kaniovski
kaniovsk at wifo.ac.at
Sun Dec 4 15:54:17 CET 2005
Say I have a FOR-loop for computing powers (just a trivial example)
for(i in 1:5)
{
x<-i^2
y<-i^3
}
How can I create a data.frame and a 3D plot of (i,x(i),y(i)), i.e. for
each iteration
Thanks,
Serguei Kaniovski
--
___________________________________________________________________
Österreichisches Institut für Wirtschaftsforschung (WIFO)
Name: Serguei Kaniovski Postadresse: Postfach 91
Tel.: +43-1-7982601-231 A-1103 Wien
Fax : +43-1-7989386 Standort: Arsenal Objekt 20
Mail: Serguei.Kaniovski at wifo.ac.at A-1030 Wien
http://www.wifo.ac.at/
More information about the R-help
mailing list