[R] Variable Names

Konstantinos Euripides Vorloou K.E.Vorloou at durham.ac.uk
Wed Feb 17 18:07:43 CET 1999


Dear R users,

That's probably a silly question even for a newbie but :

Is it possible to assign variable prices as variable names ?
For instance, would something like the following work :

for (i in 1:4)
{
 error.i <- some_calculation
}

so "error.i" variables would be created for i=1,2,3,4
i.e.  error.1 error.2 error.3 etc. etc.


Costas
--
---------------------------------------------------------------------
Konstantinos E. Vorloou           | Tel: +44 (0)191 374 1821
Dept. of Economics & Finance      | Fax: +44 (0)191 374 7289
University of Durham,             | email: K.E.Vorloou at durham.ac.uk
23/26 Old Elvet,                  | or : vorlow at rocketmail.com
Durham DH1 3HY,                   | ---------------------------------
UK.                               | http://www.durham.ac.uk/~dec3kev
http://www.durham.ac.uk/Economics | ICQ: 20595534
---------------------------------------------------------------------


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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