Skip to content

x[c()] <- value sets the mode to mode(value)

2 messages · Henrik Bengtsson, William Dunlap

#
Only for the record,

an unnecessary overhead when nothing is assigned:
int [1:10] 0 0 0 0 0 0 0 0 0 0
num [1:10] 0 0 0 0 0 0 0 0 0 0

'x' could equally well have renamed untouched.

/Henrik
#
I disagree.  I think the language is more predictable,
hence easier to use, if the class of the output of a
function depends only on the classes of the inputs,
not on the classes and lengths of the inputs.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com