title: How to get two maximum values in a data frame in R?
body: <p>It only sorting the values of the data frame instead of giving the two highest values in data frame</p>
  
  <pre><code> fr &lt;- data.frame(ty,tu,ti,to,tp)
   sort(fr,decreasing = TRUE)
  </code></pre>