mean_frames: Get the sums/means of frames in a 3-dimensional array.

Description Usage Arguments Value Examples

View source: R/frame_stats.R

Description

Frame i of a 3-dimensional array arr3d is defined as arr3d[, , i].

Usage

1
2
3
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?

Value

A numeric vector.

Examples

1
2
3
a <- array(seq_len(2^3), dim = rep(2, 3))
sum_frames(a)
mean_frames(a)

detrendr documentation built on May 16, 2021, 9:07 a.m.