R/favstats.R

Defines functions favstats

Documented in favstats

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 31, 2017, 2:02 a.m.