R/relen.R

relen <-
function (x) {z<-(-1/log(length(levels(x))))*(sum(prop.table(table(x))*log(prop.table(table(x))))); if(length(levels(x))==1) {z<- 0}; return(z) }

Try the relen package in your browser

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

relen documentation built on May 2, 2019, 3:04 a.m.