Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

kojix2/RDatasets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDatasets

Gem Version Build Status

RDatasets for Ruby. This ruby gem allows you to access over 1200 datasets included in R from Ruby.

  • All the datasets were imported from RDatasets created by Vincent.
  • This Ruby gem was inspired by RDatasets.jl created by John Myles White.

Installation

gem install rdatasets

Usage

require 'rdatasets'
df = Daru::DataFrame.from_rdatasets("datasets","iris")
df = RDatasets.load "datasets", "iris"
df = RDatasets.load :datasets, :iris
df = RDatasets.datasets.iris
# returns Daru::DataFrame

# available datasets
df = RDatasets.df

# search
RDatasets.search "diamonds"
RDatasets.search /diamonds/

Development

  • Do not add data other than the CSV file.
  • Do not add custom useful methods for a specific dataset.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kojix2/rdatasets.

Do you need commit rights to my repository?
Do you want to get admin rights and take over the project?
If so, please feel free to contact me @kojix2.

License

GPL-3. See the documents below for more details.

About

Ruby gem for loading datasets in R

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published