Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kojix2/rdatasets2
https://github.com/kojix2/rdatasets2
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kojix2/rdatasets2
- Owner: kojix2
- License: gpl-3.0
- Created: 2023-01-09T11:28:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T06:15:32.000Z (9 months ago)
- Last Synced: 2024-04-21T02:15:36.388Z (7 months ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Rdatasets
[![Gem Version](https://badge.fury.io/rb/rdatasets.svg)](https://badge.fury.io/rb/rdatasets)
[![Build Status](https://github.com/kojix2/Rdatasets/workflows/test/badge.svg)](https://github.com/kojix2/Rdatasets/actions)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](https://github.com/vincentarelbundock/Rdatasets) created by Vincent.
- This Ruby gem was inspired by [Rdatasets.jl](https://github.com/johnmyleswhite/Rdatasets.jl) created by John Myles White.## Installation
```bash
gem install rdatasets
```## Usage
```ruby
require "rdatasets"
df = Polars::DataFrame.from_rdatasets("datasets","iris")
df = Rdatasets.load "datasets", "iris"
df = Rdatasets.load :datasets, :iris
df = Rdatasets.datasets.iris
# returns Polars::DataFrame# available datasets
df = Rdatasets.df# search
Rdatasets.search "diamonds"
Rdatasets.search /diamonds/
```## Development
```
rake data:prepare
```## 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.
- https://github.com/vincentarelbundock/Rdatasets#license
- https://github.com/johnmyleswhite/Rdatasets.jl#licensing-and-intellectual-property