{"id":23011683,"url":"https://github.com/r-quantities/constants","last_synced_at":"2025-07-31T09:05:25.309Z","repository":{"id":56388856,"uuid":"96716662","full_name":"r-quantities/constants","owner":"r-quantities","description":"Reference on Constants, Units and Uncertainty","archived":false,"fork":false,"pushed_at":"2022-12-23T16:44:25.000Z","size":489,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T03:26:59.110Z","etag":null,"topics":["constants","cran","physics","r","r-package"],"latest_commit_sha":null,"homepage":"https://r-quantities.github.io/constants","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/r-quantities.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}},"created_at":"2017-07-09T23:07:39.000Z","updated_at":"2024-08-02T16:44:11.000Z","dependencies_parsed_at":"2023-01-30T19:01:23.789Z","dependency_job_id":null,"html_url":"https://github.com/r-quantities/constants","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/r-quantities/constants","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-quantities%2Fconstants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-quantities%2Fconstants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-quantities%2Fconstants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-quantities%2Fconstants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-quantities","download_url":"https://codeload.github.com/r-quantities/constants/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-quantities%2Fconstants/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268016330,"owners_count":24181651,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["constants","cran","physics","r","r-package"],"created_at":"2024-12-15T10:10:27.997Z","updated_at":"2025-07-31T09:05:25.240Z","avatar_url":"https://github.com/r-quantities.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, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# \u003cimg src=\"https://avatars1.githubusercontent.com/u/32303769?s=40\u0026v=4\"\u003e Reference on Constants, Units and Uncertainty\n\n\u003c!-- badges: start --\u003e\n[![Build Status](https://github.com/r-quantities/constants/workflows/build/badge.svg)](https://github.com/r-quantities/constants/actions)\n[![Coverage Status](https://codecov.io/gh/r-quantities/constants/branch/master/graph/badge.svg)](https://codecov.io/gh/r-quantities/constants)\n[![CRAN\\_Status\\_Badge](https://www.r-pkg.org/badges/version/constants)](https://cran.r-project.org/package=constants)\n[![Downloads](https://cranlogs.r-pkg.org/badges/constants)](https://cran.r-project.org/package=constants)\n\u003c!-- badges: end --\u003e\n\nThe **constants** package provides the CODATA internationally recommended values of the fundamental physical constants, provided as symbols for direct use within the R language. Optionally, the values with uncertainties and/or units are also provided if the 'errors', 'units' and/or 'quantities' packages are installed. The Committee on Data for Science and Technology (CODATA) is an interdisciplinary committee of the International Council for Science which periodically provides the internationally accepted set of values of the fundamental physical constants. This package contains the \"2018 CODATA\" version, published on May 2019.\n\n\u003e Eite Tiesinga, Peter J. Mohr, David B. Newell, and Barry N. Taylor (2020). The 2018 CODATA Recommended Values of the Fundamental Physical Constants (Web Version 8.1). Database developed by J. Baker, M. Douma, and S. Kotochigova. Available at https://physics.nist.gov/cuu/Constants/, National Institute of Standards and Technology, Gaithersburg, MD 20899.\n\n## Installation\n\nInstall the release version from CRAN:\n\n```{r, eval=FALSE}\ninstall.packages(\"constants\")\n```\n\nThe installation from GitHub requires the [remotes](https://cran.r-project.org/package=remotes) package.\n\n```{r, eval=FALSE}\n# install.packages(\"remotes\")\nremotes::install_github(\"r-quantities/constants\")\n```\n\n## Example\n\n```{r}\nlibrary(constants)\n\n# the speed of light\nsyms$c0\n# use the constants in a local environment\nwith(syms, c0)\n\n# explore which constants are available\n(lkp \u003c- lookup(\"planck\", ignore.case=TRUE))\nidx \u003c- as.integer(rownames(lkp))\n\n# attach the symbols to the search path and use them explicitly\nattach(syms[idx])\nh\nplkl\n\n# the same with uncertainty\ndetach(syms[idx])\nattach(syms_with_errors[idx])\nh\nplkl\n\n# the same with units\ndetach(syms_with_errors[idx])\nattach(syms_with_units[idx])\nh\nplkl\n\n# the same with everything\ndetach(syms_with_units[idx])\nattach(syms_with_quantities[idx])\nh\nplkl\n\n# the whole dataset\nhead(codata)\n\n# number of constants per type\nlibrary(magrittr)\ncodata %\u003e%\n  tidyr::separate_rows(type, sep=\", \") %\u003e%\n  dplyr::count(type, sort=TRUE)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-quantities%2Fconstants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-quantities%2Fconstants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-quantities%2Fconstants/lists"}