Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add R package port of ucimlrepo #16

Open
coatless opened this issue Jul 19, 2024 · 0 comments
Open

Add R package port of ucimlrepo #16

coatless opened this issue Jul 19, 2024 · 0 comments

Comments

@coatless
Copy link

Hi 👋

Thanks for making available the Python variant to download data sets off of the UCI ML Repo.

I took a moment to port of the existing code functions into an R package that you can access here:

https://github.com/coatless-rpkg/ucimlrepo

Would it be possible to create a mono repo that includes both the R and Python versions of the package? Also, would you be okay with adding an R data import tab to the website?

Demo

Install the R ucimlrepo package

install.packages("remotes")
remotes::install_github("coatless-rpkg/ucimlrepo")

Import the dataset into your code

library(ucimlrepo)
  
# fetch dataset 
iris <- fetch_ucirepo(id = 53) 
  
# data (as R dataframe) 
X <- iris$data$features 
y <- iris$data$targets 
  
# metadata 
print(iris$metadata) 
  
# variable information 
print(iris$variables) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant