x <- "y"
assign(x,4)
comment(get(x))<-"this is a comment!"
how can i do something like this? i tried also
comment(x) <-"this is a comment!"
and my others, but it doesn't seem to work. Similar to this question: Access variable value where the name of variable is stored in a string