On 10/03/2009 4:35 PM, michael_ka...@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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to