Learn R Programming

supernova (version 3.0.0)

pad_len: 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)

Value

The padded vector.

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.