Class: Statsample::Excel

Inherits:
Object show all
Defined in:
lib/statsample/converters.rb

Overview

This class has been DEPRECATED. Use Daru::DataFrame::from_excel Daru::DataFrame#write_excel for XLS file operations.

Class Method Summary collapse

Class Method Details

.read(filename, opts = Hash.new) ⇒ Object

Returns a dataset based on a xls file

NOTE

Deprecated. Use Daru::DataFrame.from_excel instead.

Raises:

  • (NoMethodError)


78
79
80
# File 'lib/statsample/converters.rb', line 78

def read(filename, opts=Hash.new)
  raise NoMethodError, "Deprecated. Use Daru::DataFrame.from_excel instead."
end

.write(dataset, filename) ⇒ Object

Write a Excel spreadsheet based on a dataset

  • TODO: Format nicely date values

NOTE

Deprecated. Use Daru::DataFrame#write_csv.

Raises:

  • (NoMethodError)


69
70
71
# File 'lib/statsample/converters.rb', line 69

def write(dataset,filename)
  raise NoMethodError, "Deprecated. Use Daru::DataFrame#write_excel instead."
end