R/paired.args.check.R

Defines functions paired.args.check

paired.args.check <-
function(a,b,conflict.msg,default){
  if(is.null(a))
  {
    if(is.na(b))
      a<-default
    else
      a<-!as.logical(b)
  }else{
    if(!is.na(b))
      if(as.logical(b)==a)
        stop(paste0("(Conflict in arguments)\\r\\n ",conflict.msg))
  }
  a
}

Try the dfrr package in your browser

Any scripts or data that you put into this service are public.

dfrr documentation built on May 31, 2023, 5:32 p.m.