Learn R Programming

supernova (version 2.5.0)

pad: 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.