R/spc_vector.R

spc.vector <- function (obj, m.min=1, m.max=15, all=FALSE)
{
  if (! inherits(obj, "spc")) stop("argument must be object of class 'spc'")
  if (all) m.max <- max(obj$m)
  if (m.min < 1) stop("'m.min' must be >= 1")
  if (m.max < m.min) stop("'m.max' must be >= 'm.min'")

  Vm.spc(obj, m.min:m.max)
}

Try the zipfR package in your browser

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

zipfR documentation built on Jan. 8, 2021, 2:37 a.m.