-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
65 lines (46 loc) · 1.95 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# asylum <img src='man/figures/logo.png' align="right" height="150" /></a>
<!-- badges: start -->
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![CRAN status](https://www.r-pkg.org/badges/version/asylum)](https://cran.r-project.org/package=asylum)
<!-- badges: end -->
The `asylum` package provides easy access to asylum and resettlement datasets for the UK, published by the Home Office.
The current release uses the most recent data from September 2023.
## Installation
Install the released version of `asylum` from [CRAN](https://cran.r-project.org/package=asylum):
``` r
install.packages("asylum")
```
Alternatively, you can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("humaniverse/asylum")
```
## Example
To calculate the number of applications from Afghanistan awaiting a decision, as of the latest quarter:
```{r example}
library(asylum)
library(dplyr)
asylum::awaiting_decision |>
filter(Nationality == "Afghanistan" & Date == max(Date)) |>
summarise(`Total applications awaiting a decision` = sum(Applications))
```
## Getting help
If you encounter a clear bug, please file an issue with a minimal
reproducible example on
[GitHub](https://github.com/humaniverse/asylum/issues).
------------------------------------------------------------------------
Please note that this project is released with a [Contributor Code of
Conduct](https://www.contributor-covenant.org/version/2/0/code_of_conduct/).
By participating in this project you agree to abide by its terms.