[R] == operand
hadley wickham
h.wickham at gmail.com
Wed Dec 10 01:23:18 CET 2008
On Tue, Dec 9, 2008 at 5:36 PM, Renny Li <rennyli at yahoo.com> wrote:
> Hi,
>
> I am trying to compare two values using "==" operand, please take a look of the following example (I copied ALL what I did here without deleting any line)
>
>> bb<-1
>> cc<-50
>> cc==abs(bb+52)
> [1] FALSE
>> C<-53
>> C<-53
>> c<-53
>> cc==abs(bb+52)
> [1] FALSE
cc is 50. bb is 1. Why do you expect 50 to equal 1 + 52? Perhaps
you meant to type cc <- 53 ?
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list