title: Problems replacing values in R data frame
body: <p>Using Friendman1 function, I want to create a data frame replacing the Target column by values <code>TRUE</code>/<code>FALSE</code> if value is bigger than / less than or equal to 14.4.</p>
  
  <pre><code>library(mlbench)
  dataset &lt;- mlbench.friedman1(1600)
  colnames(dataset$x) &lt;- paste("Attr.", 1:10, sep="")
  data &lt;- data.frame(dataset$x, dataset$y)
  colnames(data)[11] &lt;- "Target"
  
  data$Target[data$Target &gt; 14.4] &lt;- "TRUE"
  data$Target[data$Target &lt;= 14.4] &lt;- "FALSE"
  </code></pre>
  
  <p>The problem is that it works find except for values &lt; than 10.</p>
  
  <p>So a head result will be:</p>
  
  <pre><code>Attr.1 ... Attr.10 Target
  0.8356 ... 0.05367 TRUE
  0.9723 ... 0.29951 5.7792
  0.5623 ... 0.15223 FALSE
  </code></pre>