[R] Logical vectors

(Ted Harding) ted.harding at wlandres.net
Thu Nov 4 10:08:42 CET 2010


On 04-Nov-10 08:56:42, Gerrit Eichner wrote:
> On Thu, 4 Nov 2010, Stephen Liu wrote:
> [snip]
>> In;
>>
>> 2.4 Logical vectors
>> http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics
>>
>> It states:-
>>
>> The logical operators are <, <=, >, >=, == for exact equality and !=
>> for inequality ........
>>
>>>    # exact equality
>> !=   # inequality
> 
> [snip]
> 
> 
> Hello, Stephen,
> in my understanding of the sentence
> 
> "The logical operators are <, <=, >, >=, == for exact equality and !=
> for inequality ........"
> 
> the phrase "exact equality" refers to the operator "==", i. e. to the
> last element "==" in the enumeration (<, <=, >, >=, ==), and not to its
> first.
> 
>   Regards  --  Gerrit

This indicates that the sentence can be mis-read. It should be
cured by a small change in punctuation (hence I copy to R-devel):

  The logical operators are <, <=, >, >=; == for exact equality;
  and != for inequality ........

Hoping this helps!
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.harding at wlandres.net>
Fax-to-email: +44 (0)870 094 0861
Date: 04-Nov-10                                       Time: 09:08:37
------------------------------ XFMail ------------------------------



More information about the R-help mailing list