R/precintcon.pn.analysis.r

#' @export
precintcon.pn.analysis <- function(
   object, 
   interval = 30, 
   scale    = "a"
) {
	
	if (!is.element(scale, c("w", "m", "s", "a", "d")))
		stop("Invalid scale parameter. It should be either \"w\" (weak), \"m\" (month), \"s\" (seasonal), \"a\" (annual), or \"d\" (decade)")

	if (interval < 1)
		stop("invalid interval. It should be greater than 0")
		
	l <- precintcon.pn(object, interval=interval, scale=scale)		
	
	return(l)		
}

Try the precintcon package in your browser

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

precintcon documentation built on May 2, 2019, 3:07 p.m.