[R] exists() and functions
greenberg at ucdavis.edu
Fri Jun 25 22:05:34 CEST 2010
I'm a bit confused about how exists() work within a function -- I want
to test for unassigned variables, but I'm doing tests in the main
environment to figure out the function, so the variables DO exist in
the parent environment of a function call.
myfunction <- function(variable_outside_function)
I didn't assign anything to variable_outside_function, so I'm unclear
why it thinks it exists...
More information about the R-help