Re: [R] Fail to save an object using name as string

2018-04-09 Thread Jeff Newmiller
Have you ever noticed that when you run x <- 1:5 y <- 2:6 plot( x, y+1 ) you get the expressions you used in your call to plot on the axis labels? `x` is an expression consisting of a single symbol and y+1 is an expression consisting of the addition operator and two arguments: the symbol x and

[R] Fail to save an object using name as string

2018-04-09 Thread Marc Girondot via R-help
Dear list member, I think that I have detected a strange behavior of the save() command: > year <- "2000" > assign(paste0("Var_", year), list(A=10, B=20)) > get(paste0("Var_", year)) $A [1] 10 $B [1] 20 # At this point all is ok, I have created a list of name Var_2000 > save(paste0("Var_", ye