pad_len: Pad x to a given output length

View source: R/utils.R

pad_lenR Documentation

Pad x to a given output length

Description

Pad x to a given output length

Usage

pad_len(x, output_length, after = length(x), pad = NA)

Arguments

x

The vector to pad.

output_length

The length to pad the vector to.

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.