R/S.R

Defines functions `S`

`S` <-
function(m, factor=1,cukier=TRUE, par.names=NULL, reorder=1:m){
#calculate the array of S-values
#usually tabled values from
#cukier 75 are used
#if cukier=F table values from
#McRae82 are used
if(cukier){
  omega=freq_cukier(m)
}else{
  omega=freq_mcrae82(m)
}
tab<-s(m,factor,cukier) %o% omega
toreturn <- asin(sin(tab))/pi
toreturn <- data.frame(toreturn[,reorder])
if(!is.null(par.names[1]))
   names(toreturn)<- par.names
return(toreturn)
}

Try the fast package in your browser

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

fast documentation built on May 2, 2019, 5:56 a.m.