[R] creating expression with for-loop

Thomas Hoffmann hoffmann at giub.uni-bonn.de
Wed Apr 9 21:22:22 CEST 2008

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?


More information about the R-help mailing list