This function provides up to 14 statistics for an entire data object: number of cases, mean, standard deviation, variance, standard error, median, mad (median absolute deviation), trimmed and winsorized means, range, minimum, maximum, skewness, and kurtosis. Statistics for a factor variable might be computed based on its `levels`, and is shown accompained whit ans
detail(.data, by = NULL, basic = FALSE, na.rm = TRUE, trim = 0.2,
type = 2, k = 1)detail(.data, by = NULL, basic = FALSE, na.rm = TRUE, trim = 0.2,
type = 2, k = 1)
basic=TRUE
.na.rm
, default is na.rm=TRUE
.A data frame containing the require computations
#load some data
data(marriage)
# To apply the function
detail(marriage, trim = 0.5, k = 3)
Run the code above in your browser using DataLab