Learn R Programming

sparseDFM (version 1.0)

raggedEdge: Generate a ragged edge structure for a data matrix

Description

Generate a ragged edge structure for a data matrix

Usage

raggedEdge(X, lags)

Value

ragged edge version of X

Arguments

X

numeric data matrix

lags

vector of integers representing publication lag of each variable

Examples

Run this code
data = matrix(rnorm(100),ncol=10)
pub_lags = c(rep(2,5),rep(1,3),rep(0,2))
new_data = raggedEdge(data, pub_lags)


Run the code above in your browser using DataLab