SciRuby / daru-io

daru-io is a plugin gem to the existing daru gem, which aims to add support to Importing DataFrames from / Exporting DataFrames to multiple formats.
http://www.rubydoc.info/github/athityakumar/daru-io/master/
MIT License
24 stars 9 forks source link

RDS & RData IO modules #44

Closed athityakumar closed 7 years ago

athityakumar commented 7 years ago

Closes #12

This Pull Request adds Importers & Exporters for .rds, .RData file formats. The RDS Importer, RDS Exporter and RData Importer are monkey-patched into Daru::DataFrame like other IO modules. Whereas, the RData exporter would fare well as a stand-alone feature IMO (like Daru::IO::Exporters::RData.new('file.RData', 'first.df': df1, 'second.df': df2, ...).call.

YARD Docs have been added. Tests are currently added for just 1 just fixture file each for both the Importers, and more tests will be added in this PR soon. After they have been added, this PR will be ready for a review.