pad: Pad x to length of y

View source: R/utils.R

padR Documentation

Pad x to length of y

Description

Pad x to length of y

Usage

pad(x, y, after = length(x), pad = NA)

Arguments

x

The vector to pad.

y

The vector with target length.

after

A subscript, after which the padding is to be appended.

pad

The value to pad the vector with.

Value

The padded vector.


supernova documentation built on May 29, 2024, 4:47 a.m.