R/CREATE_DISTR.R

CREATE_DISTR <-
function(input,DISCR=1000){

INPUT=lapply(input,CREATE_DISTR_fun,DISCR)

for (i in 1:length(INPUT)){
	if (INPUT[[i]]$type=="impr proba"){
		for (j in INPUT[[i]]$param){
			INPUT[[j]]$level=2
		}
	}
}	

return(INPUT)
}

Try the HYRISK package in your browser

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

HYRISK documentation built on May 2, 2019, 12:54 p.m.