From: Ale¹ ®iberna <ales.ziberna_at_guest.arnes.si>

Date: Tue 02 Aug 2005 - 18:12:10 EST

list(a=a,b=b)

*}
*

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Aug 02 18:19:15 2005

Date: Tue 02 Aug 2005 - 18:12:10 EST

Hello!

Thanks in advance for any suggestions!

Ales Ziberna

For example - I would like to use just "a" instead of "list$a" in fuction "second"

first<-function(a,b){ if(length(a)!=1) a <- a[1] if(length(b)!=1) b <- b[1]

list(a=a,b=b)

second<-function(list,c){

list$a + list$b + c

*}
*

a<-c(2,3) b<-4:64 c<-5

res<-first(a,b)

second(res,c)

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Aug 02 18:19:15 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:39:39 EST
*