mean_vec_blocks: Calculate the mean of adjacent blocks in a vector.

View source: R/utils.R

mean_vec_blocksR Documentation

Calculate the mean of adjacent blocks in a vector.

Description

Calculate the mean of adjacent blocks in a vector.

Usage

mean_vec_blocks(x, block_size)

Arguments

x

input vector.

block_size

number of adjacent elements to average over.

Value

vector data averaged in blocks.


spant documentation built on Sept. 11, 2024, 9:13 p.m.