{"id":19487146,"url":"https://github.com/tylerlittlefield/ucimlr","last_synced_at":"2025-04-25T18:32:21.455Z","repository":{"id":182545135,"uuid":"169909329","full_name":"tylerlittlefield/ucimlr","owner":"tylerlittlefield","description":":bar_chart: UCI Machine Learning Repository in R","archived":false,"fork":false,"pushed_at":"2021-01-30T19:40:32.000Z","size":1890,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T01:32:09.487Z","etag":null,"topics":["datasets","r","rstats","uci-machine-learning"],"latest_commit_sha":null,"homepage":"https://ucimlr.netlify.com/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tylerlittlefield.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.html","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-02-09T20:17:14.000Z","updated_at":"2022-01-31T08:06:41.000Z","dependencies_parsed_at":"2023-07-20T12:32:01.106Z","dependency_job_id":null,"html_url":"https://github.com/tylerlittlefield/ucimlr","commit_stats":null,"previous_names":["tylerlittlefield/ucimlr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fucimlr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fucimlr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fucimlr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerlittlefield%2Fucimlr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tylerlittlefield","download_url":"https://codeload.github.com/tylerlittlefield/ucimlr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250872313,"owners_count":21500798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datasets","r","rstats","uci-machine-learning"],"created_at":"2024-11-10T20:44:13.144Z","updated_at":"2025-04-25T18:32:20.672Z","avatar_url":"https://github.com/tylerlittlefield.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n\n# total ucimlr datasets\ndatasets \u003c- data(package = \"ucimlr\")\ntotal_datasets_names \u003c- datasets$results[, \"Item\"]\ndataset_names \u003c- glue::glue(\"* `{total_datasets_names}` \\n\")\ntotal_datasets \u003c- length(datasets$results[, \"Item\"])\n```\n\n# ucimlr \u003cimg src=\"man/figures/logo-inter-ui.png\" align=\"right\" height=150/\u003e\n\n\u003c!-- badges: start --\u003e\n[![Travis build status](https://travis-ci.org/tyluRp/ucimlr.svg?branch=master)](https://travis-ci.org/tyluRp/ucimlr)\n[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/tyluRp/ucimlr?branch=master\u0026svg=true)](https://ci.appveyor.com/project/tyluRp/ucimlr)\n[![Codecov test coverage](https://codecov.io/gh/tyluRp/ucimlr/branch/master/graph/badge.svg)](https://codecov.io/gh/tyluRp/ucimlr?branch=master)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/ae8ab755-9460-4891-883c-6820d7e52158/deploy-status)](https://app.netlify.com/sites/ucimlr/deploys)\n\u003c!-- badges: end --\u003e\n\nThe goal of `ucimlr` is to give R users easy access to datasets found at the [**U**niversity of **I**rvine's **M**achine **L**earning **R**epository](https://archive.ics.uci.edu/ml/index.php). The benefits of using this package are:\n\n1. Ease of access\n2. Clean data\n\nNote that data in this repository dates back to 1987, the format across datasets are not consistent. Some inconsistencies include column separation and the way NA values are handled. Luckily, data in `ucimlr` follows a consistent structure that any R user can dive into. The structure is as follows:\n\n1. All variations of NA (null, blank character, ?, etc) are coded as NA\n2. All variables are snake case\n3. Everything is `stringAsFactors = FALSE`\n4. All datasets are presented as a [`tibble`](https://github.com/tidyverse/tibble)\n\nNote on point 3: Factors aren't evil, but I'd rather the user decide when to code something as factor or not.\n\nCurrently, there are `r nrow(ucimlr::ucidata())` datasets available at the official repository and `r total_datasets` available in `ucimlr`. These numbers update every time the README.Rmd is reknit.\n\n## Installation\n\nKeep in mind that this is a data package. As of now the package is ~`r ucimlr:::pkg_size(\"ucimlr\")` and it will continue to grow. You can install `ucimlr` from GitHub with [`devtools`](https://github.com/r-lib/devtools):\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"tyluRp/ucimlr\")\n```\n\n## Example\n\nWe can load data by name and we can scrape the current list of datasets using the `ucidata` function:\n\n```{r example}\nlibrary(ucimlr)\n\nautomobile\n\nucidata()\n\nucinews()\n```\n\nI'd suggest loading data using R's `::` so that you can access all exported variables without loading the package. This will prevent any namespace collisions and have an additional benefit of autopopulating all the datasets and functions (assuming you're using RStudio). Alternatively, to see a list of all available datasets you can run: `data(package = \"ucimlr\")`\n\n## Contributing\n\nThere are a lot of datasets and I'm slowly adding as many as I can. If you'd like to add a dataset, fix something, suggest an improvement, etc., please file an issue or submit a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerlittlefield%2Fucimlr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylerlittlefield%2Fucimlr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerlittlefield%2Fucimlr/lists"}