title: r convert Boolean vector to string
body: <p>I would like to convert my vector y$boolean into a string indicating sentiment (0 to "negative" and 1 to "positive")</p>
  
  <p>I imagine one way to do it is somehow using a Regex statement but not sure how to apply it</p>
  
  <blockquote>
    <p>dput(head(y$boolean,4)) = 
    c(1L, 0L, 0L, 1L)</p>
  </blockquote>
  
  <p>to </p>
  
  <blockquote>
    <p>y$sentiment = 
    c("positive", "negative", "negative", "positive")</p>
  </blockquote>