R/favstats.R

favstats <-
function (x, na.rm = TRUE) 
{
    val <- c(
		median(x, na.rm=na.rm),
		IQR(x, na.rm=na.rm),
		mean(x, na.rm = na.rm), 
		sd(x, na.rm = na.rm), 
        var(x, na.rm = na.rm)
		)
    names(val) <- c("median", "IQR", "mean", "sd", "var")
    return(val)
}

Try the abd package in your browser

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

abd documentation built on May 2, 2019, 4:46 p.m.