[R] R 2.10 Line Type Issue...

2009-11-27 Thread David B. Thompson, Ph.D., P.E., D.WRE, CFM
Morning folks (at least here on the western side of the U.S.)... This morning I constructed a contour plot of some bivariate distributions I'm working with. When I attempted to add a second contour to the plot using a dashed line (lty=2), R immediately went off to la-la land, requiring a

[R] Logical in test

2008-12-11 Thread David B. Thompson, Ph.D., P.E., D.WRE, CFM
OK, this should be trivial but I'm not finding it. I want to compress the test, if (i==7 | i==10 | i==30 | i==50) {} into something like if (i in c(7,10,30,50)) {} so I can build a excludes vector excludes - c(7,10,30,50) and test if (i in excludes) {} However, I'm not finding a clue on