I got just what I was looking for: do.call.
Thanks a lot to all the people who responded:
Scott D Chasalow
Brian D. Ripley
Sundar Dorai-Raj
Brad Mann
Bill Dunlap
Tony Plate
William Carlisle Thacker
Bradley J. Biggerstaff
I now vaguely recall the existence of do.call
but since I don't usually have to use it,
I couldn't remember it when I absolutely needed it.
Again, thanks!
MH
Myong-Hee Sung, Ph.D.
Molecular Statistics and Bioinformatics Section
Biometric Research Branch
National Cancer Institute
National Institutes of Health
6130 Executive Blvd. EPN Room 8146, MSC 7434
Bethesda, MD 20892-7434
Original message---------------------------------------------
> Hello,
>
> I've found myself having to perform the following
> in order to supply arguments for paste():
>
> Let's say my.list is a list of N character vectors.
> Since paste() only accepts vectors, I need to
> "unlist" my.list but want to provide N character
> vectors as N arguments to paste(). unlist()
> produces one long vector so wouldn't work here.
>
> How can I do this?
|