Learn R Programming

mixAR (version 0.22.8)

adjustLengths: Adjust the length of the second argument to be the same as that of the first one

Description

Adjust the length of the second argument to be the same as that of the first one. Appends 0's if the second argument is shorter and drops excess elements if it is longer.

Usage

adjustLengths(x, y)

Value

A vector of the same length as x

Arguments

x

the template vector

y

the vector to be adjusted