{"id":16582749,"url":"https://github.com/joeroe/numerals","last_synced_at":"2025-07-12T12:04:42.148Z","repository":{"id":114399769,"uuid":"336278911","full_name":"joeroe/numerals","owner":"joeroe","description":"R package for numeric vectors with Unicode numerals","archived":false,"fork":false,"pushed_at":"2023-05-14T11:23:06.000Z","size":432,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:43:43.256Z","etag":null,"topics":["arabic-numerals","bengali-numerals","burmese-numerals","numerals","persian-numerals","r","r-package","vctrs"],"latest_commit_sha":null,"homepage":"https://numerals.joeroe.io","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/joeroe.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-05T13:25:23.000Z","updated_at":"2024-01-04T19:46:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"eec7a9cc-10b7-467a-98b3-4c1fcddc25b3","html_url":"https://github.com/joeroe/numerals","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeroe%2Fnumerals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeroe%2Fnumerals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeroe%2Fnumerals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeroe%2Fnumerals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeroe","download_url":"https://codeload.github.com/joeroe/numerals/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeroe%2Fnumerals/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259117721,"owners_count":22807821,"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":["arabic-numerals","bengali-numerals","burmese-numerals","numerals","persian-numerals","r","r-package","vctrs"],"created_at":"2024-10-11T22:33:58.128Z","updated_at":"2025-06-10T17:32:54.306Z","avatar_url":"https://github.com/joeroe.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\n# numerals\n\n\u003c!-- badges: start --\u003e\n[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)\n[![CRAN status](https://www.r-pkg.org/badges/version/numerals)](https://CRAN.R-project.org/package=numerals)\n[![R-CMD-check](https://github.com/joeroe/numerals/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/joeroe/numerals/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n**numerals** is an R package that extends the base numeric types with methods for printing using Unicode digits in other numeral systems. \nIt currently supports Eastern Arabic (`\"ar\"`), Bengali (`\"bn\"`), Persian (`\"fa\"`), and Burmese (`\"my\"`) numerals.\n\n## Installation\n\nYou can install the development version of numerals from GitHub using [devtools](https://devtools.r-lib.org/):\n\n```r\n# install.package(\"devtools\")\ndevtools::install_github(\"joeroe/numerals\")\n```\n\nnumerals has not yet been released on CRAN.\n\n\u003c!--\nYou can install the released version of numerals from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"numerals\")\n```\n--\u003e\n\n## Usage\n\n`numeral()` creates a numeric vector which is printed in another numeral system:\n\n```{r eg-numerals}\nlibrary(\"numerals\")\n# Eastern Arabic numerals\nnumeral(1:10, \"ar\")\n\n# Persian numerals\nnumeral(1:10, \"fa\")\n```\n\nNumerals are compatible with both base and tidyverse packages.\nFor example, they are printed in data frames and [tibbles](https://tibble.tidyverse.org/):\n\n```{r eg-tibbles}\nlibrary(\"tibble\")\nx \u003c- data.frame(en = 1:10, ar = numeral(1:10, \"ar\"), fa = numeral(1:10, \"fa\"))\n\nx\nas_tibble(x)\n```\n\n\u003c!--\nAnd can be used as scales in base and [ggplot2](https://ggplot2.tidyverse.org/):\n\n```{r eg-plot, echo=FALSE, fig.show=\"hold\", out.width=\"50%\"}\nlibrary(\"ggplot2\")\n\ndata(pressure)\npressure$temperature \u003c- numeral(pressure$temperature, \"ar\")\npressure$pressure \u003c- numeral(pressure$pressure, \"ar\")\n\nplot(pressure$temperature, pressure$pressure)\n\nggplot(pressure, aes(temperature, pressure)) + geom_point()\n```\n--\u003e\n\nOtherwise, numerals are freely coercible to base numerics and so can be used in calculations:\n\n```{r eg-calc}\nnumeral(2, \"ar\") * 10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeroe%2Fnumerals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeroe%2Fnumerals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeroe%2Fnumerals/lists"}