pad: Pad a vector with zeros

View source: R/utils.R

padR Documentation

Pad a vector with zeros

Description

Pads a vector with zeros at the beginning and end.

Usage

pad(x, n, startval = 0, endval = 0)

Arguments

x

vector to pad

n

number of zeros to pad

startval

value to add at the start of the vector - defaults to zero

endval

value to add at the end of the vector - defaults to zero


neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.