Frame i
of a 3-dimensional array arr3d
is defined as arr3d[, , i]
.
mean_frames(arr3d, na_rm = FALSE)
sum_frames(arr3d, na_rm = FALSE)
Arguments
- arr3d
A 3-dimensional numeric array.
- na_rm
Do you want NA
values to be excluded from calculations?
Examples
a <- array(seq_len(2^3), dim = rep(2, 3))
sum_frames(a)
#> [1] 10 26
mean_frames(a)
#> [1] 2.5 6.5