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.


UCLATALL/supernova documentation built on Feb. 13, 2024, 6:57 a.m.