Method: Daru::Maths::Statistics::DataFrame#max

Defined in:
lib/daru/maths/statistics/dataframe.rb

#max(opts = {}) ⇒ Object

Calculate the maximum value of each numeric vector.



32
33
34
35
36
37
38
# File 'lib/daru/maths/statistics/dataframe.rb', line 32

def max opts={}
  if opts[:vector]
    row[*self[opts[:vector]].max_index.index.to_a]
  else
    compute_stats :max
  end
end