I created a function for processing some of my data, like this:
a <- "old"
test <- function (x) {
assign(x, "new", envir = .GlobalEnv)
}
test(a)
But I can't see the a change from "old" to "new", I guess this is some of the "global variable", any suggestion?
Thanks!