title: argument "no" is missing with no default
body: <p>I am trying to run an ifelse statement using the following code. I have &quot;No Lic&quot; specified as the no statement, but I am still getting the &quot;argument &quot;no&quot; is missing with no default&quot; and can't figure out why.</p>
  <p>Data:</p>
  <pre><code>ELED&lt;-data.frame(&quot;ID&quot;=1:6,&quot;UG_Degree_Term&quot;= c(201809,201901,201906,201909,202001,202006),&quot;Test_Date&quot;=c('2019-02-27','2018-10-23','2019-07-09','2019-01-18','2019-04-23','2018-7-12'))
  ELED$Test_Date&lt;-anytime(ELED$Test_Date)
  </code></pre>
  <p>Code:</p>
  <pre><code>ELED$UVM_Lic_Rec&lt;-with(ELED,
             ifelse(UG_Degree_Term==201809 &amp; Test_Date&lt;=as.POSIXct('2019-12-31'),&quot;2019&quot;),
             ifelse(UG_Degree_Term==201901 &amp; Test_Date&lt;=as.POSIXct('2020-05-30'),&quot;2019&quot;),
             ifelse(UG_Degree_Term==201906 &amp; Test_Date&lt;=as.POSIXct('2020-08-31'),&quot;2019&quot;),
             ifelse(UG_Degree_Term==201909 &amp; Test_Date&lt;=as.POSIXct('2020-12-31'),&quot;2020&quot;),
             ifelse(UG_Degree_Term==202001 &amp; Test_Date&lt;=as.POSIXct('2021-05-30'),&quot;2020&quot;),
             ifelse(UG_Degree_Term==202006 &amp; Test_Date&lt;=as.POSIXct('2021-08-31'),&quot;2020&quot;,'No Lic'))
  
  </code></pre>