Skip to content

Commit 82efcc1

Browse files
committedOct 25, 2024
Add logo
1 parent 29569a5 commit 82efcc1

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed
 

‎README.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ knitr::opts_chunk$set(
1313
)
1414
```
1515

16-
# statgl
16+
# statgl <img src="man/figures/logo.png" align="right" height="139" alt="" />
1717

1818
Query and visualize data published by Statistics Greenland.
1919

‎README.md

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4-
# statgl
4+
# statgl <img src="man/figures/logo.png" align="right" height="139" alt="" />
55

66
Query and visualize data published by Statistics Greenland.
77

@@ -19,7 +19,7 @@ To load the package contents to the R environment, run:
1919

2020
``` r
2121
library(statgl)
22-
#> R Statistics Greenland (0.2.2.9009)
22+
#> R Statistics Greenland (0.2.2.92)
2323
```
2424

2525
## Search
@@ -28,20 +28,21 @@ Use `statgl_search` to do a freetext search of the Greenland Statbank:
2828

2929
``` r
3030
statgl_search("population jan* 1st")
31-
#> # A tibble: 137 × 6
31+
#> # A tibble: 12 × 6
3232
#> id title type path score published
3333
#> <chr> <chr> <chr> <chr> <dbl> <chr>
34-
#> 1 BEXSTA Population January 1st 1977-2023 t /BE/… 0.342 2023-02-…
35-
#> 2 BEXST1 Population January 1st 1977-2020 t /BE/… 0.342 2020-02-…
36-
#> 3 BEXSTAYY Population January 1st, fixed residence… t /BE/… 0.290 2023-02-…
37-
#> 4 BEXSTB Population in Municipalities January 1s… t /BE/… 0.290 2023-02-…
38-
#> 5 BEXSTC Population in Districts and Municipalit… t /BE/… 0.290 2023-02-…
39-
#> 6 BEXSTD Population in Localities January 1st 19… t /BE/… 0.290 2023-02-…
40-
#> 7 BEXSTDt Population seniority in Localities Janu… t /BE/… 0.290 2023-02-…
41-
#> 8 BEXSTNUK Population In Nuuk January 1st by cityd… t /BE/… 0.290 2023-02-…
42-
#> 9 BEXST2A Population in municipalities(2018) Jan… t /BE/… 0.290 2017-10-…
43-
#> 10 BEXST2 Population in Municipalities January 1s… t /BE/… 0.290 2020-02-…
44-
#> # ℹ 127 more rows
34+
#> 1 BEXSTA Population January 1st 1977-2024 t /BE/… 0.344 2024-02-…
35+
#> 2 BEXST1 Population January 1st 1977-2020 t /BE/… 0.344 2020-02-…
36+
#> 3 BEXSTAYY Population January 1st, fixed residence… t /BE/… 0.292 2024-05-…
37+
#> 4 BEXSTB Population in Municipalities January 1s… t /BE/… 0.292 2024-02-…
38+
#> 5 BEXSTC Population in Districts and Municipalit… t /BE/… 0.292 2024-02-…
39+
#> 6 BEXSTD Population in Localities January 1st 19… t /BE/… 0.292 2024-02-…
40+
#> 7 BEXSTDt Population seniority in Localities Janu… t /BE/… 0.292 2024-02-…
41+
#> 8 BEXSTNUK Population In Nuuk January 1st by cityd… t /BE/… 0.292 2024-02-…
42+
#> 9 BEXST2A Population in municipalities(2018) Jan… t /BE/… 0.292 2017-10-…
43+
#> 10 BEXST2 Population in Municipalities January 1s… t /BE/… 0.292 2020-02-…
44+
#> 11 BEXST3 Population in Districts and Municipalit… t /BE/… 0.292 2020-02-…
45+
#> 12 BEXST4 Population in Localities January 1st 19… t /BE/… 0.292 2020-06-…
4546
```
4647

4748
## Fetch
@@ -51,7 +52,7 @@ collected by `statgl_fetch`:
5152

5253
``` r
5354
statgl_fetch("BEESTA")
54-
#> # A tibble: 47 × 2
55+
#> # A tibble: 48 × 2
5556
#> time value
5657
#> <chr> <int>
5758
#> 1 1977 49717
@@ -64,7 +65,7 @@ statgl_fetch("BEESTA")
6465
#> 8 1984 52347
6566
#> 9 1985 52940
6667
#> 10 1986 53406
67-
#> # ℹ 37 more rows
68+
#> # ℹ 38 more rows
6869
```
6970

7071
Eliminable variables are removed by default. To see which variables can
@@ -86,14 +87,14 @@ statgl_meta("BEESTA")
8687
#> 2 gender gender TRUE NA <chr [3]> <chr [3]>
8788
#> 3 place of birth place of birth TRUE NA <chr [3]> <chr [3]>
8889
#> 4 residence type residence type TRUE NA <chr [8]> <chr [8]>
89-
#> 5 time time NA TRUE <chr [47]> <chr [47]>
90+
#> 5 time time NA TRUE <chr [48]> <chr [48]>
9091
```
9192

9293
Codes from `values` columns can be used to query:
9394

9495
``` r
9596
statgl_fetch("BEESTA", gender = c("M", "K"), age = 0:99)
96-
#> # A tibble: 9,400 × 4
97+
#> # A tibble: 9,600 × 4
9798
#> gender age time value
9899
#> <chr> <chr> <chr> <int>
99100
#> 1 Men 0 1977 428
@@ -106,15 +107,15 @@ statgl_fetch("BEESTA", gender = c("M", "K"), age = 0:99)
106107
#> 8 Men 0 1984 494
107108
#> 9 Men 0 1985 519
108109
#> 10 Men 0 1986 564
109-
#> # ℹ 9,390 more rows
110+
#> # ℹ 9,590 more rows
110111
```
111112

112113
Use `.eliminate_rest = FALSE` to show all values of remaining
113114
eliminables:
114115

115116
``` r
116117
statgl_fetch("BEXSTA", .eliminate_rest = FALSE)
117-
#> # A tibble: 338,400 × 6
118+
#> # A tibble: 345,600 × 6
118119
#> `place of birth` gender age `residence type` time value
119120
#> <chr> <chr> <chr> <chr> <chr> <int>
120121
#> 1 Total Total 0 Total 1977 820
@@ -127,7 +128,7 @@ statgl_fetch("BEXSTA", .eliminate_rest = FALSE)
127128
#> 8 Total Total 0 Total 1984 946
128129
#> 9 Total Total 0 Total 1985 996
129130
#> 10 Total Total 0 Total 1986 1115
130-
#> # ℹ 338,390 more rows
131+
#> # ℹ 345,590 more rows
131132
```
132133

133134
## ggplot

‎logo/logo_statgl.png

364 KB
Loading
-29.6 KB
Loading

‎man/figures/logo.png

95 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.