SUM function

Summary

Summary

Summary of the elements of a matrix.

SUM(A)

Arguments

  • A: Matrix or data.frame (coerced to a matrix)

Returns

A list including the following components: - row: Vector containing the sum of squares of every row

  • col: Vector containing the sum of squares of every column

  • mr: Vector containing the mean of every row

  • mc: Vector containing the mean of every column

  • minc: Vector containing the minimum of every column

  • maxc: Vector containing the maximum of every for column

  • valueMinr: Vector containing the columns corresponding to the minimum values of every row

  • valueMinc: Vector containing the rows corresponding to the minimum values of every column

  • valueMaxr: Vector containing the columns corresponding to the maximum values of every row

  • valueMaxc: Vector containing the rows corresponding to the maximum values of every column

  • ssq: Sum of squares of the matrix

  • cumsumr: Matrix containing the cumulative sums of every row

  • cumsumc: Matrix containing the cumulative sums of every column

Author(s)

Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it

Henk A.L. Kiers h.a.l.kiers@rug.nl

Paolo Giordani paolo.giordani@uniroma1.it

Examples

X <- matrix(rnorm(6*3),ncol=3) summary <- SUM(X)
  • Maintainer: Paolo Giordani
  • License: GPL (>= 2)
  • Last published: 2015-09-07

Useful links