Skip to content

Is this a bug for my fault?

4 messages · Rut S, jim holtman, David Winsemius +1 more

#
you probably want to use %in%:
[1]   6  23  46  63 200 238 297 321 336 364 386 392 414 434 441


take a look at what 'id == idfortest' gives; study up on the recycling
of arguments.
On Thu, Aug 18, 2011 at 5:52 AM, Rut S <wissri at hotmail.com> wrote:

  
    
#
On Aug 18, 2011, at 5:52 AM, Rut S wrote:

            
What is the puzzle? Seems that the warning is fairly clear. "id" is  
nto the same length as "idfortest".

Is your confusion about how "==" works or about how argument recycling  
operates in the situation where arguemtns have unequal lengths?
#
On Thu, Aug 18, 2011 at 04:52:58PM +0700, Rut S wrote:
Others have already pointed out what the problem is. I'd like to add
that you are probablyu looking for the %in% operator.

cu
	Philipp