search for: simple_match

Displaying 5 results from an estimated 5 matches for "simple_match".

Did you mean: simplematch
2004 Jun 30
1
Developing functions
...com.ar> To: <r-help at stat.math.ethz.ch> Subject: [R] Developing functions Hi, I伌m new in R. I伌m working with similarity coefficients for clustering items. I created one function (coef), to calculate the coefficients from two pairs of vectors and then, as an example, the function simple_matching, taking a data.frame(X) and using coef in a for cicle. It works, but I believe it is a bad way to do so (I believe the for cicle is not necessary). Somebody can suggest anything better. Thanks Daniel Rozengardt coef<-function(x1,x2){a<-sum(ifelse(x1==1&x2==1,1,0)); b<-sum(ifelse(x1...
2008 Nov 04
18
Can I do foo.should (be_nil || be_empty) in rspec
Is there any way to do foo.should (be_nil || be_empty) in rspec. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081104/ee43c9c9/attachment.html>
2008 Jun 07
3
Match render :nothing
Hello guys, Is there any way to match a render :nothing? I coudn''t find any way to do this so i''ve just changed my controllers to do a "head :ok", but it would be nice to know if there is any other way :) -- Maur?cio Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) Jo?o Pessoa, PB, +55 83 8867-7208
2004 Jun 29
4
camberra distance?
Hi! Its not an R specific question but had no idea where to ask elsewhere. Does anyone know the orginal reference to the CAMBERA DISTANCE? Eryk. Ps.: I knew that its an out of topic question (sorry). Can anyone reccomend a mailing list where such questions are in topic?
2010 Oct 03
2
rspec-1.3.1.rc and rspec-rails-1.3.3.rc are released!
...Tweaker no longer eats all paths with ''lib'' (Tim Harper - #912) * Fix delegation of stubbed values on superclass class-level methods. (Scott Taylor - #496 - #957) * Fix pending to work with ruby-1.9 * deprecations * share_as (will be removed from rspec-core-2.0) * simple_matcher (will be removed from rspec-core-2.0) =================================================================== rspec-rails-1.3.3 (rc) * enhancements * replace use of ''returning'' with ''tap'' (to quite rails-2.3.9 deprecation warnings) * bug fixes * support mess...