{"id":18400020,"url":"https://github.com/mrc-ide/beers","last_synced_at":"2025-04-12T16:27:02.690Z","repository":{"id":55883897,"uuid":"119410737","full_name":"mrc-ide/beers","owner":"mrc-ide","description":":beers: :package: Beers Interpolation and Subdivision (my first R package)","archived":false,"fork":false,"pushed_at":"2020-12-09T16:32:02.000Z","size":441,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T03:17:17.783Z","etag":null,"topics":["demography","interpolation","subdivision"],"latest_commit_sha":null,"homepage":"","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/mrc-ide.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":"2018-01-29T16:43:54.000Z","updated_at":"2023-03-05T22:10:21.000Z","dependencies_parsed_at":"2022-08-15T08:31:43.220Z","dependency_job_id":null,"html_url":"https://github.com/mrc-ide/beers","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/mrc-ide%2Fbeers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fbeers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fbeers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrc-ide%2Fbeers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrc-ide","download_url":"https://codeload.github.com/mrc-ide/beers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248595809,"owners_count":21130581,"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":["demography","interpolation","subdivision"],"created_at":"2024-11-06T02:29:18.716Z","updated_at":"2025-04-12T16:27:02.669Z","avatar_url":"https://github.com/mrc-ide.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\ntitle: Beers\n---\n\n# beers\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/mrc-ide/beers/workflows/R-CMD-check/badge.svg)](https://github.com/mrc-ide/beers/actions)\n[![Coverage Status](https://img.shields.io/codecov/c/github/mrc-ide/beers/master.svg)](https://codecov.io/github/mrc-ide/beers?branch=master)\n\u003c!-- badges: end --\u003e\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nlibrary(beers)\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n## Introduction\n\nThe beers package provides the Beers ordinary and modified methods for interpolating\nbetween 5-yearly points, and subdividing 5-yearly agebands. The most likely usage is \nwith demographic data that has been presented at 5-yearly intervals, or in 5-yearly\nage-bands. The Beers algorithm can be used to interpolate, or subdivide those data\nrespectively, and is notably used by UNWPP for that purpose.\n\n## Usage\n\nFour functions provide interpolation or subdivision, with the ordinary or modified\nBeers method. For interpolation, the algorithm requires at least 6 points, and for\nsubdivision at least 5 points.\n\n```{r example}\nbeers_int_ordinary(c(1, 2, 4, 8, 16, 32))\nbeers_int_modified(c(1, 2, 4, 8, 16, 32))\nbeers_sub_ordinary(c(10, 20, 40, 80, 160))\nbeers_sub_modified(c(10, 20, 40, 80, 160))\n```\n\n## Installation\n\nYou can install beers from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"mrc-ide/beers\")\n```\n\n\n## License\n\nMIT + file LICENSE © [Wes Hinsley](https://github.com/weshinsley).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrc-ide%2Fbeers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrc-ide%2Fbeers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrc-ide%2Fbeers/lists"}