[R] creating expression with for-loop

2008-04-09 Thread Thomas Hoffmann
Dear listmembers I would like to create an expression that looks like labl = expression(10^1,10^2,10^3,10^4,10^5) using a for-loop. However for (i in 1:5){ labl[i]=expression(10^i) } does not do the right thing. Does anybody knows help? Thanks Thomas

Re: [R] creating expression with for-loop

2008-04-09 Thread Duncan Murdoch
On 4/9/2008 3:22 PM, Thomas Hoffmann wrote: Dear listmembers I would like to create an expression that looks like labl = expression(10^1,10^2,10^3,10^4,10^5) using a for-loop. However for (i in 1:5){ labl[i]=expression(10^i) } does not do the right thing. Does anybody knows help?