search for: ismatch

Displaying 3 results from an estimated 3 matches for "ismatch".

Did you mean: mismatch
2010 Oct 22
1
Reference classes
...nces with this functionality have been very positive. I've stumbled over one minor issue so far: default values of method parameters are not displayed by the help() method, viz. > library(methods) > Regex <- setRefClass("Regex", fields="string", methods=list( + isMatch = function (text, ignoreCase = FALSE) + { + 'Returns a logical vector of the same length as "text", indicating whether or not each element is a match to the regular expression.' + grepl(string, text, ignore.case=ignoreCase, perl=TRUE) + } + )) > Regex$he...
2011 Dec 05
1
Subsetting a data frame
Hi R users, I really need help with subsetting data frames: I have a large database of medical records and I want to be able to match patterns from a list of search terms . I've used this simplified data frame in a previous example: db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1, 2, 1.3, 3), test2 = c(56L, 27L, 58L,
2007 Aug 12
3
Scope and specing models
Hello all, I''m currently having an issue with some specs, specifically scope issues (probably more of a scope issue than a spec issue at this point)... Here''s the error: ActiveRecord::AssociationTypeMismatch in ''A new User should know what role it has'' Role expected, got NilClass D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in `add'' ./spec/models/user_spec.rb:62: script/spec:4: Here''s the user.rb http://pastie.caboo.se/87029 role.rb h...