shanmuha boopathy a écrit :
> a<-function(a,b,c,d)
> {
> k=a+b
> l=c+d
> m=k+l
> }
>
> in this example the function will return only the value of "m"
> ...But I like to extract the values of "l" & "k" also.........
> which command to use for storing or for extracting those intermediate
> value.......
may I suggest, inside your function
res = c(k, l, m);
return(res);
# also ... read some intro docs !
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html