search for: oneprog

Displaying 1 result from an estimated 1 matches for "oneprog".

Did you mean: inprog
2000 Apr 27
1
Equivalent of S> assign( , ,frame=1)
Hi, I'm new to R, and I certainly miss an obvious point. I looked in the doc and the archieve, but could not find what is the R equivalent of the S assign( , ,frame=1). I guess the question is like what is the equivalent of the S frames and how to access them. As an example: oneprog <- function() { initial() res <- subrout() return(res) } initial <- function() { assign ("x", 2, frame=1) assign ("y", 3, frame=1) } subrout <- function() return(x+y) This works perfectly with S. I know that if I put subrout inside oneprog and...