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

View source: R/frame_stats.R

mean_framesR Documentation

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

Description

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

Usage

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

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

rorynolan/detrendr documentation built on March 9, 2023, 10:26 p.m.