{"id":32203132,"url":"https://github.com/evanodell/threesixtygiving","last_synced_at":"2026-02-19T09:02:36.284Z","repository":{"id":143716863,"uuid":"195080045","full_name":"evanodell/threesixtygiving","owner":"evanodell","description":"threesixtygiving","archived":false,"fork":false,"pushed_at":"2020-11-29T11:21:18.000Z","size":1131,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-08T15:25:09.844Z","etag":null,"topics":["charities","data-retrieval","philanthropy","r","r-package"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evanodell.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-03T15:19:25.000Z","updated_at":"2021-03-05T21:03:47.000Z","dependencies_parsed_at":"2023-04-06T11:31:11.263Z","dependency_job_id":null,"html_url":"https://github.com/evanodell/threesixtygiving","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/evanodell/threesixtygiving","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanodell%2Fthreesixtygiving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanodell%2Fthreesixtygiving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanodell%2Fthreesixtygiving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanodell%2Fthreesixtygiving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evanodell","download_url":"https://codeload.github.com/evanodell/threesixtygiving/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evanodell%2Fthreesixtygiving/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280151532,"owners_count":26281249,"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-10-20T02:00:06.978Z","response_time":62,"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":["charities","data-retrieval","philanthropy","r","r-package"],"created_at":"2025-10-22T04:32:12.785Z","updated_at":"2025-10-22T04:32:13.806Z","avatar_url":"https://github.com/evanodell.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\n\u003c!-- badges: start --\u003e\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/threesixtygiving)](https://cran.r-project.org/package=threesixtygiving)\n[![GitHub tag](https://img.shields.io/github/tag/evanodell/threesixtygiving.svg)](https://github.com/evanodell/threesixtygiving)\n[![](https://cranlogs.r-pkg.org/badges/grand-total/threesixtygiving)](https://dgrtwo.shinyapps.io/cranview/)\n[![R build status](https://github.com/evanodell/threesixtygiving/workflows/R-CMD-check/badge.svg)](https://github.com/evanodell/threesixtygiving/actions)\n[![Codecov test coverage](https://codecov.io/gh/evanodell/threesixtygiving/branch/master/graph/badge.svg)](https://codecov.io/gh/evanodell/threesixtygiving?branch=master)\n[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/evanodell/threesixtygiving?branch=master\u0026svg=true)](https://ci.appveyor.com/project/evanodell/threesixtygiving)\n[![DOI](https://zenodo.org/badge/195080045.svg)](https://zenodo.org/badge/latestdoi/195080045)\n\u003c!-- badges: end --\u003e\n\n# threesixtygiving\n\nAccess open data from [360Giving](https://www.threesixtygiving.org/) publishers. 360Giving is a data standard for publishing information about charitable grant giving in the UK. 360Giving maintains a [registry of grant makers](https://data.threesixtygiving.org/) using the standard. The package provides functions to search and retrieve data on charitable giving.\n\n\n## Installation\n\u003c!--\nYou can install the released version of threesixtygiving from [CRAN](https://CRAN.R-project.org) with:\n``` r\ninstall.packages(\"threesixtygiving\")\n```\n--\u003e\n\nYou can install the development version from [GitHub](https://github.com/evanodell/threesixtygiving) with:\n\n```{r gh-installation, eval=FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"evanodell/threesixtygiving\")\n```\n\n## Purpose\n\nThe `threesixtygiving` package provides tools for programmatically downloading and analysing grants made by charitable trusts using the [360Giving standard](https://standard.threesixtygiving.org/). These include functions to search available datasets, retrieve data and process it to tidy formats. \n\n\n## Usage\n\nThe example below shows how to retrieve all available grants, and presents the total value of grants since 2018-01-01. It uses the [`fixerapi`](https://cran.r-project.org/package=fixerapi) package to perform currency conversions, as some grants are reported in currencies other than GBP.\n\n```{r eval=FALSE}\nlibrary(threesixtygiving)\nlibrary(dplyr)\nlibrary(ggplot2)\nlibrary(fixerapi) # for currency rates\nlibrary(stringi)\n\ngrants \u003c- tsg_all_grants(timeout = 8, retries = 0)\n\ndf \u003c- tsg_core_data(grants)\n\n# Retrieve currency exchange rates\ncurrencies \u003c- fixer_latest(\"EUR\", c(unique(df$currency)))\n\n# Convert exchange rates to use GBP as the base currencies\ncurrencies \u003c- currencies %\u003e% \n  mutate(value = value * (1/currencies$value[currencies$name == \"GBP\"]))\n\ncurrencies\n\n## rate on 2020-11-28\ndf2 \u003c- df %\u003e% \n  mutate(amount_awarded = case_when(\n    currency == \"USD\" ~ amount_awarded/filter(currencies, name==\"USD\")$value,\n    currency == \"CAD\" ~ amount_awarded/filter(currencies, name==\"CAD\")$value,\n    currency == \"CHF\" ~ amount_awarded/filter(currencies, name==\"CHF\")$value,\n    currency == \"EUR\" ~ amount_awarded/filter(currencies, name==\"EUR\")$value,\n    currency == \"ILS\" ~ amount_awarded/filter(currencies, name==\"ILS\")$value,\n    TRUE ~ amount_awarded)) %\u003e%\n  filter(award_date \u003e= \"2018-01-01\") %\u003e%\n  group_by(funding_org_name) %\u003e%\n  summarise(n = n(),\n            amount_awarded = sum(amount_awarded)) %\u003e%\n  mutate(avg = amount_awarded/n)\n\ntheme_set(theme_bw())\n\np1 \u003c- ggplot(df2 %\u003e% \n               top_n(20, amount_awarded) %\u003e% \n               mutate(amount_awarded2 = amount_awarded/100000),\n             aes(x = reorder(funding_org_name, -amount_awarded2),\n                 y = amount_awarded2, fill = amount_awarded2)) + \n  geom_col() + \n  scale_y_sqrt(labels = scales::dollar_format(prefix = \"£\"),\n               breaks = c(1000, 5000, 10000, 25000, 50000, 75000)) + \n  scale_x_discrete(labels = scales::wrap_format(40)) + \n  scale_fill_viridis_c() + \n  labs(x = \"Funder\", y = \"Amount Awarded \n       (in 100,000s, note logarithmic scale)\",\n       title = \"Total Value of Grants Awarded by Twenty Largest Funders\",\n       caption = \"(c) Evan Odell | 2020 | CC-BY-SA | Data from 360Giving\") + \n  theme(axis.text.x = element_text(angle = 45, hjust = 1, size = 7),\n        legend.position = \"none\") \n  \np1\n\n#ggsave(\"man/figures/total-value.png\", p1, width = 10)\n\n```\n\n\n![](man/figures/total-value.png)\n\n\n## Notes\n\nThis project is possible thanks to support and encouragement from David Kane at [360Giving](https://www.threesixtygiving.org/), and from [Disability Rights UK](https://www.disabilityrightsuk.org/).\n\n### Data licences\n\nThe actual grant data is available under a variety of open licences, typically a version of the Open Government Licence or one of the Creative Commons licences. Please respect the licence conditions that are attached to each dataset.\n\n### Citing `threesixtygiving`\n\nPlease cite `threesixtygiving` as:\n\nOdell, Evan (2020). _threesixtygiving: Download Charitable Grants from the '360Giving' Platform_. doi: [10.5281/zenodo.3474128](https://doi.org/10.5281/zenodo.3474128), R package version `r packageVersion(\"threesixtygiving\")`, URL: \u003chttps://docs.evanodell.com/threesixtygiving\u003e.\n\nA BibTeX entry for LaTeX users is:\n\n```\n  @Manual{,\n    title = {threesixtygiving: Download Charitable Grants from the '360Giving' Platform},\n    author = {Evan Odell},\n    year = {2020},\n    doi = {10.5281/zenodo.3474128},\n    url = {https://docs.evanodell.com/threesixtygiving},\n    note = {R package version `r packageVersion(\"threesixtygiving\")`},\n  }\n```\n\n### Code of Conduct\n\nPlease note that the `threesixtygiving` package is released with a [Contributor Code of Conduct](https://github.com/evanodell/threesixtygiving/blob/master/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.\n\nThe code in this package is licensed using the [GNU General Public License Version 3](https://www.gnu.org/licenses/gpl-3.0) software license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanodell%2Fthreesixtygiving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanodell%2Fthreesixtygiving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanodell%2Fthreesixtygiving/lists"}