R/utils.R

Defines functions find.mode cfl.helper comparefilelist

comparefilelist<-function(files,files2)
  {
  w<-unlist(lapply(files,cfl.helper,files2))
  return(files[!w])
}
  
cfl.helper<-function(file, files2)
{
  return(any(file==substr(files2,1,str_length(file))))
}

find.mode<-function(x)
{
  d<-density(x)
  return(d$x[which(d$y==max(d$y))[1]])
}

Try the nucim package in your browser

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

nucim documentation built on June 10, 2021, 9:07 a.m.