<div dir="ltr"><div><div><div><div><div>Folks:<br><br></div>I've been working more and more in data.table and it gets better and better as I learn to use it....<br><br></div>So my question is, in the following example, is the Where statement inefficient because I'm using "==" ? (I just want to use the subsets where days are equal to the values in the statement)<br>
<br>Should I do this another way? (Btw, I get exactly the right answer using this approach...)<br><br>db <- DB4[<br> <br> Days==1 | Days==5 | Days==10 | Days==20 | Days==30 | Days==60 | Days==90,<br> <br> j = {list(v=m_func(x,y,z))},<br>
<br> by= "Date,Indicator,Days"<br> <br> ]<br><br></div>If more detail is necessary, lmk. Date, Indicator, and Days are keys.<br><br></div>Best,<br><br></div>John<br></div>