[R] summing up a matrix

Matthias Weber Matthias.Weber at fntsoftware.com
Fri Nov 18 16:16:27 CET 2016


Hello together,

is it possible, to summing up a matrix?
I have the following matrix at the moment:

                                [,1]         [,2]         [,3]        [,4]         [,5]         [,6]
2016-11                20            200        100         50           100         30
2016-12                100          200        100         50           100         30
2017-01                50            200        100         50           100         30

Now I want to summing up the matrix in a new matrix.

The result should look like the following:

                                [,1]         [,2]         [,3]        [,4]         [,5]         [,6]
2016-11                20            220        320         370         470         500
2016-12                100          300        400         450         550         580
2017-01                50            250        350         400         500         530

Is it possible, to create that?

Thanks for your help.

Best regards.

Mat


	[[alternative HTML version deleted]]



More information about the R-help mailing list