MatthieuStigler / tsDyn

tsDyn
tsdyn.googlecode.com
33 stars 20 forks source link

Add "$" to regex to prevent matching against multiple lags #7

Closed tvladeck closed 5 years ago

tvladeck commented 5 years ago

in

for(i in 1:lag) A[[i]] <- co[,grep(paste("\\.l", i, sep=""), colnames(co)), drop=FALSE]

the grep will match against lags 1 and 10 without the termination term "$"

MatthieuStigler commented 5 years ago

Nice, thanks for the bug report, and fix!

as I had a bunch on ongoing development changes, I added this manually to my own dev branch, insted of doing the merge (which I am also less familiar with). Thanks again!