Learn R Programming

LPWC (version 1.0.0)

weight.lag: Weight Lag

Description

This function matches vectors of two different lengths

Usage

weight.lag(x1, x2)

Arguments

x1

a vector

x2

a vector

Value

a matrix with two rows with the shortest length of the vector as the number of columns

Examples

Run this code
# NOT RUN {
weight.lag(1:5, 2:9)
weight.lag (seq(0, 10, 2), seq(4, 10, 2))


# }

Run the code above in your browser using DataLab