Recent content by laye

  1. L

    missing value where TRUE/FALSE needed

    the idea of the code is to determine the period of presence of an insured according to the date of the beginning and the end of his contracts. Knowing that an insured can have multiple contracts, I test whether there is an overlap or not. I want to keep the maximum period if there is overlap...
  2. L

    missing value where TRUE/FALSE needed

    @Dason ? thanks you
  3. L

    missing value where TRUE/FALSE needed

    hi, i got this kind of error when my function is called : "missing value where TRUE/FALSE needed" my fonction is : exposition_1<-function(DAtdeb,DAtfin){ ######## SANS SAUTS ######## if (max(DAtdeb)< min(DAtfin)) { deb_exp=min(DAtdeb) fin_exp=max(DAtfin) }...