Prof Brian Ripley
2003-Jun-20 13:57 UTC
[Rd] paste(character(0), character(0)) == "". Why?
This seems to be deliberate, since paste.c says if(maxlen == 0) return mkString(""); but it is not documented and it is not what S (even S+3.4) does. On the other hand, S gives> paste(character(0), character(0), collapse="+")[1] " " which looks incorrect to me (and R gives "" which I reckon to be right). Anyone know the rhyme or reason here? -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595