《B-R软件的使用》-公开课件.pptVIP

  • 4
  • 0
  • 约1.99千字
  • 约 62页
  • 2019-12-21 发布于广西
  • 举报
2. An introduction to R (II);2.8 Matrices and arrays;矩阵的维数 dim( );拼接矩阵cbind() and rbind();取矩阵的上下三角部分lower.tri() upper.tri();upper.tri()的运算结果;提取上下三角矩阵;生成对角阵和矩阵提取对角元素 diag();矩阵的拉直as.vector( ); a - array(1:(2*4*3),dim=c(2,4,3));a , , 1 [,1] [,2] [,3] [,4] [1,] 1 3 5 7 [2,] 2 4 6 8 , , 2 [,1] [,2] [,3] [,4] [1,] 9 11 13 15 [2,] 10 12 14 16 , , 3 [,1] [,2] [,3] [,4] [1,] 17 19 21 23 [2,] 18 20 22 24;广义转置(Array Permutation);The recycling and arithmetic rules;矩阵运算;矩阵运算;矩阵运算;矩阵运算;矩阵行列运算 ;Array的维运算 ; 与tapply对比;Array和矩阵/向量

文档评论(0)

1亿VIP精品文档

相关文档