title: Unexpected symbol in rstudio in decision tree
body: <p>I am getting an unexpected symbol error in my code in R.</p>
  
  <pre><code>tree &lt;- ctree(Income Level ~ Employment + Education Level + Profession,
                data = traindata)
  </code></pre>
  
  <blockquote>
    <p>Error: unexpected symbol in "tree&lt;-ctree(Income Level"</p>
  </blockquote>
  
  <p>The error code above is from the party packages. </p>
  
  <p>Below is the error from the install.packages("tree")</p>
  
  <pre><code>modelRegTree &lt;- tree(Income Level ~ Employment + Education Level + Profession + Sex, 
                       data = traindata)
  </code></pre>
  
  <blockquote>
    <p>Error: unexpected symbol in "modelRegTree&lt;-tree(Income Level"</p>
  </blockquote>
  
  <p>I do not know what the unexpected symbol is as I am following along the work of a professor on yt but using my own data. Both times he uses this line of code and his works. </p>