R/imfil_create_scales.R

imfil_create_scales <- function(options){
  custom_scales <- options$custom_scales
  mcs <- length(custom_scales)
  if (mcs > 0){
    dscal <- custom_scales
  } else {
    scalestart <- options$scalestart
    scaledepth <- options$scaledepth
  }
  if (scalestart > scaledepth) stop("imfil_create_scales: scalestart > scaledepth")
  dscal <- -(scalestart : scaledepth)
  dscal <- 2^dscal
  dscal
}

Try the rImfil package in your browser

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

rImfil documentation built on May 2, 2019, 4:46 p.m.