title: Row aggregations in Scala
body: <p>I am looking for a way to get a new column in a data frame in Scala that calculates the <code>min</code>/<code>max</code> of the values in <code>col1</code>, <code>col2</code>, ..., <code>col10</code> for each row. </p>
  
  <p>I know I can do it with a UDF but maybe there is an easier way. </p>
  
  <p>Thanks!</p>