title: What to put in the IF statement if the condition is determinate for running the entire code?
body: <p>I am trying to write an if-else statement for continuing with my code and I dont know what to put as the if condition.</p>
  <p>I am running several datasets of tracking data trough the same for loop. I want to create a threshold in the beginning, so if the dataset does not pass the threshold the code will skip that data and continue to the next set. I am working with tracking data and the condition has to be that if, after a certain date (using unix_time) there are no new datapoints anymore, that dataset can be skipped.</p>
  <p><code>if(prelim_data$unix_time &gt; 1570494019) { &lt;-&gt; } else {print(&quot;skip&quot;)}</code></p>
  <p>This condition does not work because it only selects that one row in the dataframe. What could I put ther instead?
  I have added the &quot;skip&quot; so I can see in the list of things that is printed in the console which datasets are skipped.</p>
  <p>I was also wondering if an ifelse statement would work better?</p>