Skip to content
Prev 140108 / 398506 Next

Geting names of variables

I don't quite understand what you doing but have you
looked at ?names ?

 x1 <- 3
 x2 <- 5
 y <- -34.5
mylist <- list(x1,x2,y)
mynames <- c("First Trade  Position",  "Second Trade
Position",  "P&L")
names(mylist) <- mynames
mylist
--- Fernando Saldanha <fsaldan1 at gmail.com> wrote:

            
as.character(eval(substitute(quote(vnv[i+1])))[[2]][[i