powered by
Generate a ragged edge structure for a data matrix
raggedEdge(X, lags)
ragged edge version of X
numeric data matrix
vector of integers representing publication lag of each variable
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