[R] retrieve from function

threshold r.kozarski at gmail.com
Fri Feb 19 19:06:52 CET 2010


Thank you for response. The problem is that using return(y1) in my function
formula always returns y1, but what I want is to return it only when I wish,
like p.value in
t.test(rnorm(100),rnorm(100))$p.value

robert
-- 
View this message in context: http://n4.nabble.com/retrieve-from-function-tp1561972p1562012.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list