From J.C.Rougier@durham.ac.uk  Fri Jul 16 14:12:30 1999
From: J.C.Rougier@durham.ac.uk (Jonathan Rougier)
Date: Fri, 16 Jul 1999 14:12:30 +0100 (BST)
Subject: vector()
Message-ID: <Pine.GSO.3.96.990716140337.4499A-100000@laplace>

Can I suggest that vector() has an additional names argument?  This would
make it more comparable with matrix() and array().  I frequently find
myself doing

	fred <- vector("list", length(happy))
	names(fred) <- names(happy)

when I would rather be doing

	fred <- vector("list", length(happy), names = names(happy))

Just a thought.  Cheers, Jonathan.

Jonathan Rougier                       Science Laboratories
Department of Mathematical Sciences    South Road
University of Durham                   Durham DH1 3LE

"[B]egin upon the precept ... that the things we see are to be 
 weighed in the scale with what we know"  (Meredith, 1879, The Egoist)

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


vector()
Jonathan Rougier