From pburns at pburns.seanet.com  Sun Jul 13 11:39:21 2008
From: pburns at pburns.seanet.com (Patrick Burns)
Date: Sun, 13 Jul 2008 10:39:21 +0100
Subject: [Rd] multiple names to assign
Message-ID: <4879CD49.2080406@pburns.seanet.com>

'assign' does not give a warning if 'x' has length
greater than 1 -- it just uses the first element:

assign(c('a1', 'a2'), 1:2)

One way of thinking about this is that people using
'assign' get what they deserve.  The other is that it is
used seldom enough that adding a warning isn't going
to slow things down appreciably.


Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")



[Rd] multiple names to assign
Patrick Burns