Re: [R] Function scope issues

2011-02-17 Thread Duncan Murdoch
On 11-02-16 10:23 PM, Sébastien Bihorel wrote: Dear R-users, I have some questions about the scope of functions, which I would like to illustrate with the following example: ### First example require(Hmisc) combine.levels<- function(x,y) browser() whatever<- function(x,y) combine.levels(x,y)

[R] Function scope issues

2011-02-16 Thread Sébastien Bihorel
Dear R-users, I have some questions about the scope of functions, which I would like to illustrate with the following example: ### First example require(Hmisc) combine.levels <- function(x,y) browser() whatever <- function(x,y) combine.levels(x,y) x <- 1:5 names(x) <- LETTERS[x] y <- 6: 10 name