s-news
[Top] [All Lists]

Re: Feeding list of vectors as arguments to paste()

To: "Sung, Myong-Hee (NCI)" <sungm@mail.nih.gov>
Subject: Re: Feeding list of vectors as arguments to paste()
From: ripley@stats.ox.ac.uk
Date: Wed, 19 Jun 2002 19:37:18 +0100 (BST)
Cc: <s-news@lists.biostat.wustl.edu>
In-reply-to: <76D006EB9224D411B12B0008C7C59D9606AF3078@nihexchange9.nih.gov>
On Wed, 19 Jun 2002, Sung, Myong-Hee  (NCI) wrote:

> 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?

?do.call

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


<Prev in Thread] Current Thread [Next in Thread>