Sum, product, and range of data

Sums, differences, and products

Sum and cumulative sum

[1] 146
[1]  17  47  77 102 125 146

Successive differences

[1] 13  0 -5 -2 -2
[1] 13 -5 -7 -4

Product and cumulative product

[1] 184747500
[1]        17       510     15300    382500   8797500 184747500
[1] 120

Minimum, maximum and range

Get the minimum, maximum and range

[1] 17
[1] 30
[1] 17 30
[1] 13

Identify the minimum and maximum elements

[1] 1
[1] 2

Identify element closest to a value (here: 0)

[1] 3

Pairwise minimum and maximum

[1] 5 3 9 7
[1] 3 2 0 2

Get the article source from GitHub

R markdown - markdown - R code - all posts