[R] dots expansion

Viet Nguyen vietnguyen at fastmail.fm
Tue Aug 3 06:37:56 CEST 2004


Hi list,

I'm trying to write a function similar to rbind, except that needs to 
add a factor to each component array before rbinding them together so 
that the rows from different arrays are distinguishable.

The problem that arose is how to loop through arguments in the dots 
"..." list. I need to get a hand on each of them but don't know how many 
of them there are and what their names are.

It'd be useful if I could look at how rbind(...) or c(...) do this but 
they are both Internal functions.

Thanks in anticipation of help!

Regards,
viet




More information about the R-help mailing list