From murdoch at stats.uwo.ca  Tue Mar 10 22:01:05 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Tue, 10 Mar 2009 17:01:05 -0400
Subject: [Rd] logical comparison of functions (PR#13588)
In-Reply-To: <20090310203515.74F2D2832196@mail.pubhealth.ku.dk>
References: <20090310203515.74F2D2832196@mail.pubhealth.ku.dk>
Message-ID: <49B6D511.2080509@stats.uwo.ca>

On 10/03/2009 4:35 PM, michael_karsh at earthlink.net wrote:
> Full_Name: Michael Aaron Karsh
> Version: 2.8.0
> OS: Windows XP
> Submission from: (NULL) (164.67.71.215)
> 
> 
> When I try to say if (method==f), where f is a function, it says that the
> comparison is only possible for list and atomic types.  I tried saying if
> (method!=f), and it gave the same error message.  Would it be possible to repair
> it say that == and != comparisons would be possible for functions?

This is not a bug.  Please don't report things as bugs when they aren't. 
  "==" and "!=" are for atomic vectors, as documented.

Use identical() for more general comparisons, as documented on the man 
page for ==.

Duncan Murdoch



[Rd] logical comparison of functions (PR#13588)
Duncan Murdoch