Skip to content
Prev 304314 / 398506 Next

Create and Assign value into a variable from Another variable

Hello,

Try the following, supposing that 1:5 is the value you want to assign.

?assign
MyVariable <- "UnitNo"
assign(MyVariable, 1:5)
UnitNo

Hope this helps,

Rui Barradas

Em 28-08-2012 07:48, Rantony escreveu: