Is this what you want?
i <- 3
f <- function() get("i", parent.frame())
f() # 3
On Nov 22, 2007 10:38 PM, Thomas L Jones, PhD <[EMAIL PROTECTED]> wrote:
> I have a numeric vector of length 1. I am trying to use it inside
> a function just by giving its name, rather than specifying it as
> an argu
I have a numeric vector of length 1. I am trying to use it inside
a function just by giving its name, rather than specifying it as
an argument to the function. I am aware that there is an attach
function which you need to call. The attach function will accept a
list. However, I don't seem to be abl
2 matches
Mail list logo