## Not run:
# # load iris dataset
# data(iris)
#
# # between-class covariance matrix (dividing by n-1)
# betweenCov(iris[,1:4], iris[,5])
#
# # between-class covariance matrix (dividing by n)
# betweenCov(iris[,1:4], iris[,5], div_by_n=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab