[R] Create variable by name

Ralf B ralf.bierig at gmail.com
Wed Oct 6 18:32:09 CEST 2010


Can one create a variable through a function by name

createVariable <- function(name) {
	outputVariable = name
	name <- NULL
}

after calling

createVariable("myVar")

I would like to have a variable myVar initialized with NULL in my
environment. Is this possible?

Ralf



More information about the R-help mailing list