[R] identical(length(x), 1) returns FALSE, but print(length(x)) is 1, length(x)==1 is TRUE, and is.integer(lenght(x)) is TRUE????
Gavin Simpson
gavin.simpson at ucl.ac.uk
Tue Sep 15 18:31:58 CEST 2009
On Tue, 2009-09-15 at 12:22 -0400, Steve Lianoglou wrote:
> Hi,
<snip />
> I guess the lesson learned is that:
>
> identical() != ==
Indeed, and ?identical explains some of the motivation behind the
function identical and the examples of said help page include the
problem the OP faced... now where was that posting guide...
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list