Method: MyMatrix#countup
- Defined in:
- lib/mymatrix.rb
#countup(header) ⇒ Object
全件カウントして、[value, count] という配列に格納する
796 797 798 799 800 801 802 803 |
# File 'lib/mymatrix.rb', line 796 def countup(header) out = [] values = getColumn(header).uniq values.each do |value| out << [value, self.count(header, value)] end return out end |