Learn R Programming

supernova (version 3.0.0)

pad: Pad x to length of y

Description

Pad x to length of y

Usage

pad(x, y, after = length(x), pad = NA)

Value

The padded vector.

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.