search for: tp1561972p1562012

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

2010 Feb 19
6
retrieve from function
Hi, say I got the function: > x=function(nbr){y<-rnorm(nbr);y1 <- mean(y);plot(y)} how can I retrieve value of y1, when I need it. I don't want: > x=function(nbr){y<-rnorm(nbr);y1 <<- mean(y);plot(y)} > y1 I want someting like: "x$y1" and then I get the value Many thanks, robert -- View this message in context: