title: Conditional Operators Building a condition in R
body: <p>I need to build a condition if all the numbers in the vector <strong>marks</strong> (passed as arguments) are greater than 110. If yes, assign the string <strong>&quot;top&quot;</strong> to the variable M, else assign <strong>&quot;Down&quot;</strong></p>
  <p>I try making this but it´s doesnt marks me as correct</p>
  <pre><code>classmark&lt;-function(marks){
  
  
      V1 &lt;- marks &gt; 110
      V&lt;- ifelse(V1 == TRUE,&quot;Best Class&quot;,&quot;Needs Improvement&quot;)
      
      return(V)
      }
      print(classmark(c(120,195,914,56)))
      print(classmark(c(130,295,294,196)))
  </code></pre>
  <p>This is the original code</p>
  <pre><code>    classmark&lt;-function(marks){
      
          # Enter your code here. Read input from STDIN. Print output to STDOUT
          V&lt;-
          
          return(V)
          }
      print(classmark(c(120,195,914,56)))
      print(classmark(c(130,295,294,196)))
  </code></pre>