Learn R Programming

supernova (version 2.5.1)

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.