adjustLengths: Adjust the length of the second argument to be the same as...

View source: R/00marmath.R

adjustLengthsR Documentation

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)

Arguments

x

the template vector

y

the vector to be adjusted

Value

A vector of the same length as x


mixAR documentation built on May 3, 2022, 5:08 p.m.