R/is.in.R

Defines functions is.in

Documented in is.in

is.in <-
function(x,c=NULL)
{ # used internally by eval.paths();
  # only for numeric arguments!!!
  i<-0;
  rv<-FALSE;
  while(i<length(c))
  {
    i<-i+1;
    if(identical(x,as.numeric(c[i]))==TRUE)
    {
      rv<-TRUE;
      i<-length(c);
    }
  }
  is.in<-rv;
}

Try the dagR package in your browser

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

dagR documentation built on Oct. 9, 2022, 5:06 p.m.