Displaying 2 results from an estimated 2 matches for "not_in".
Did you mean:
nat_in
2013 Aug 30
0
ddply for comparing simulation results
...4 4
>> 5: 0 5 3
>> 6: 0 6 7
>>
>>
>> you can use 'setdiff' to find userIDs that are missing from one group
>> or the other:
>>
>> > #see which userIDs are missing between the groups
>> > not_in <- setdiff(df_leads_sum$userId[df_leads_sum$isSimulated == 0]
>> + , df_leads_sum$userId[df_leads_sum$isSimulated == 1]
>> + )
>> > str(not_in)
>> int [1:697] 59 100 204 584 656 828 840 999 1012 1046 ...
>> >
>> Jim Holtman
>> Data Mun...
2012 Feb 21
10
Search of multiple columns
I am currently writing a search method for my rails applications and at
the moment it works fine. I have the following in my game.rb:
def self.search(search)
if search
find(:all, :conditions => [''game_name LIKE ? OR genre LIKE ? OR
console LIKE ?'', "%#{search}%", "#{search}", "#{search}"])
else
find(:all)
end
end
No that searches