Good morning,

I have something like this: names(coint_tests) <- apply(b,2,paste, 
collapse="_") which prints 15 names like: A_B, C_D, E_F, ...
AA,B,C,D.. Are time series. Then there is a vector called coint_tests of length 
15 which yields "yes" or "no".

I need to add a function to plot the time series Ai_Bi if the coint_tests 
vectors gives me a "YES".


I tried:    for (i in 1:(length(coint_tests))
                        if (coint_tests[[i]]="YES") {plot(coint_tests[i])}

But it does not work. I would most appreciate if someone could give me some 
insight as to how to sort this out. Thank you

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to