hi,

i got this kind of error when my function is called : "missing value where TRUE/FALSE needed"

my fonction is :

Can you help me to find the mistakes

Merci

i got this kind of error when my function is called : "missing value where TRUE/FALSE needed"

my fonction is :

Code:

```
exposition_1<-function(DAtdeb,DAtfin){
######## SANS SAUTS ########
if (max(DAtdeb)< min(DAtfin)) {
deb_exp=min(DAtdeb)
fin_exp=max(DAtfin)
}
################## TOUS LES AUTRES CAS AVEC SAUTS #####################
else {
deb_exp=DAtdeb
fin_exp=DAtfin
}
res=return(cbind(deb_exp,fin_exp))
}
```

Merci

Last edited: