[R] apply

Steven Yen @tyen @end|ng |rom ntu@edu@tw
Fri Oct 4 10:32:06 CEST 2024


The following line calculates standard deviations of a column vector:

se<-apply(dd,1,sd)

How can I calculate the covariance matrix using apply? Thanks.



More information about the R-help mailing list