Methods

Class/Module Index [+]

Quicksearch

Statsample::Mondrian

Public Class Methods

write(dataset,filename) click to toggle source
# File lib/statsample/converters.rb, line 66
def write(dataset,filename)
  File.open(filename,"wb") do |fp|
    fp.puts dataset.fields.join("\t")
    dataset.each_array_with_nils do |row|
      row2=row.collect{|v| v.nil? ? "NA" : v.to_s.gsub(/\s+/,"_") }
      fp.puts row2.join("\t")
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.