[R] dots expansion

Viet Nguyen
Tue, 03 Aug 2004 04:37:56 -0000

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