R/VV_lnre.R

VV.lnre <- function (obj, N=NA, ...)
{
  if (! inherits(obj, "lnre")) stop("first argument must be object of class 'lnre'")
  if (missing(N)) stop("argument 'N' is required for 'lnre' objects")
  if (!(is.numeric(N) && all(N >= 0))) stop("argument 'N' must be non-negative integer")
  
  EV(obj, 2*N) - EV(obj, N)
}

Try the zipfR package in your browser

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

zipfR documentation built on Nov. 13, 2020, 3:01 a.m.