Skip to content
Prev 75933 / 398502 Next

Re : A. Mani : Avoiding Loops

On Friday 19 August 2005 11:54, Sean O'Riordain wrote:
Hello,
      Sorry about the incomplete problem. Here is a better version for the
problem: (the measure is not simple)
The data frame is like
  col1       col2            col3       col4        col5
  <num>  <nonum>   <nonum>      <num>   <num>
       A           B             C                  E           F   
There are repeated strings in col3, col2.
Problem : Calculate  Measure(Ci) = [No. of repeats of Ci *100] + [If (Bi, Ci) 
is same as (Bj, Cj) and 6>= Ej - Ei >=3 then add 100 else  10] .


Actually it is to stretched further by adding similar blocks.

 How do we use *apply or
something else in the situation  ?


In prolog it is extremely easy, but here it is not quite...


A. Mani
Member, Cal. Math. Soc