module Statsample::Mondrian
Public Instance Methods
write(dataset,filename)
click to toggle source
# File pkg/statsample-1.4.0/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