how to compute covariance matrix with iris3 for each iris type in R?

后端 未结 0 516
灰色年华
灰色年华 2021-01-02 06:29

I would think apply(iris3, 3, cov) will work, but it doesn\'t. I expect the output to be 4 x 4 x 3 for 4 x 4 for covariance matrix and 3 for 3 types of iris.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题