R/binit.R

Defines functions binit

Documented in binit

binit <- function(samps,roundPrec=NULL){
if ( length(roundPrec)  ){
	roundPrec <-floor(roundPrec)
	samps <- round(samps, roundPrec)
}
binned <- rle(sort(as.vector(samps)))
return(invisible(binned))
}

Try the cgwtools package in your browser

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

cgwtools documentation built on Oct. 21, 2023, 1:06 a.m.