R/ExceedanceTools_arg_check.R

Defines functions statistics_sim_arg_check

statistics_sim_arg_check <- function(krige.obj, level, alternative)
{
	if(is.null(krige.obj$sim))
	{
			stop("krige.obj$sim cannot be NULL.  Try setting nsim > 0.")
	}
	if(!is.numeric(level) || length(level) > 1)
	{
		stop("level must be a numeric vector of length 1")
	}
	if(!(alternative == "less" || alternative == "greater" || alternative == "two.sided"))
	{
		stop('alternative must equal "two.sided" or "less" or "greater"')
	}
}

Try the ExceedanceTools package in your browser

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

ExceedanceTools documentation built on Aug. 22, 2023, 1:08 a.m.