sotkanet
R Tools for the Sotkanet demographics indicator database (covering Finland and Europe)
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.2%) to scientific vocabulary
Keywords
finland
health
r
r-package
sotkanet-data-portal
Last synced: 7 months ago
·
JSON representation
·
Repository
R Tools for the Sotkanet demographics indicator database (covering Finland and Europe)
Basic Info
- Host: GitHub
- Owner: rOpenGov
- License: other
- Language: R
- Default Branch: master
- Homepage: http://ropengov.github.io/sotkanet
- Size: 5.16 MB
Statistics
- Stars: 9
- Watchers: 6
- Forks: 4
- Open Issues: 1
- Releases: 1
Topics
finland
health
r
r-package
sotkanet-data-portal
Created over 12 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
License
Citation
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "90%"
)
```
# sotkanet: Tools for accessing open data on welfare and health in Finland
[](https://ropengov.org/)
[](https://github.com/rOpenGov/sotkanet/actions)
[](https://github.com/rOpenGov/sotkanet/actions)
[](https://CRAN.R-project.org/package=sotkanet)
[](https://ropengov.r-universe.dev/)
[](https://cran.r-project.org/package=sotkanet)
[](https://www.r-pkg.org/pkg/sotkanet)
[![Watch on GitHub][github-watch-badge]][github-watch]
[![Star on GitHub][github-star-badge]][github-star]
[
[](https://app.codecov.io/gh/rOpenGov/sotkanet?branch=master)
R package to access and manipulate data from the Sotkanet demographics indicator database. The [Sotkanet data portal] provides over 2000 demographic indicators across Finland and Europe, and is maintained by the [National Institute for Health and Welfare (THL)]. For more information, see [data description].
### Installation
You can install the stable release version from CRAN:
```{r install, eval=FALSE}
install.packages("sotkanet")
```
Alternatively, you can install the development version of sotkanet package from GitHub with:
```{r github, eval = FALSE}
# install.packages("remotes")
remotes::install_github("rOpenGov/sotkanet")
```
Development version can be also installed using the
[r-universe](https://ropengov.r-universe.dev):
```{r, eval=FALSE}
# Enable this universe
options(repos = c(
ropengov = "https://ropengov.r-universe.dev",
CRAN = "https://cloud.r-project.org"
))
install.packages("sotkanet")
```
### Using the package
Load the package in R:
```{r example_load, eval=TRUE, message=FALSE, warning = FALSE}
library(sotkanet)
```
List available indicators in the Sotkanet data portal:
```{r sotkanetIndicators, warning=FALSE, message=FALSE, eval=TRUE}
# Pre-defined list of indicators to save bandwidth
sotkanet.indicators <- sotkanet_indicators(c(4,5,6,7,46,74))
head(sotkanet.indicators$indicator.title)
```
Here is an example of data retrieval and visualization, using indicator describing private dental care use among 0-17 years old in 2015-2022.
```{r sotkanet_example, eval=TRUE, warning = FALSE}
library(ggplot2)
library(ggrepel)
hammashoito <- get_sotkanet(indicators = 1075, years = 2015:2022, genders = "total", region.category = "MAAKUNTA")
# Indicator title tells what this indicator is about
unique(hammashoito$indicator.title)
# Some data has to be retrieved separately
hammashoito_metadata <- sotkanet_indicator_metadata(id = 1075)
plot_caption <- paste0("Lähde: https://sotkanet.fi / ", hammashoito_metadata$organization$title, "\n",
"Datan päiväys ", hammashoito_metadata$`data-updated`)
plot <- ggplot(hammashoito, aes(x=year, y=primary.value, group=region.title))+
geom_line(aes(color=region.title)) +
geom_point(aes(color=region.title))
plot + labs(title = "Yksityisen hammashuollon käynnit 2015-2022",
subtitle = "0 - 17-vuotiailla / 1 000 vastaavanikäistä",
x = "Vuosi",
y = "Käyntien lkm",
caption = plot_caption,
color = "Maakunta") +
geom_text_repel(
aes(color = region.title, label = ifelse(year == 2022, region.title, NA_character_)),
xlim = c(2023, 2025),
direction = "both",
hjust = 0,
segment.size = .7,
segment.alpha = .5,
segment.linetype = "dotted",
box.padding = .4,
segment.curvature = -0.1,
segment.ncp = 3,
segment.angle = 20,
size = 3)+
theme(legend.position = "none",
panel.background = element_rect(fill = "linen")) +
scale_x_continuous(
expand = c(0, 0),
limits = c(2015, 2025),
breaks = seq(2015, 2022))
```
For more in-depth examples, see the package vignette or online [tutorial page](http://ropengov.github.io/sotkanet/articles/tutorial.html).
### Contributing
* [Submit suggestions and bug reports](https://github.com/ropengov/sotkanet/issues) (provide the output of `sessionInfo()` and `packageVersion("sotkanet")` and preferably provide a [reproducible example](http://adv-r.had.co.nz/Reproducibility.html))
* [Send a pull request](https://github.com/ropengov/sotkanet/pulls)
* [Star us on the Github page](https://github.com/ropengov/sotkanet/)
* [See our website](https://ropengov.org/community/) for additional contact information
### Acknowledgements
**Kindly cite this work** as follows: [Leo Lahti](https://github.com/antagomir), Einari Happonen, Juuso Parkkinen, Joona Lehtomaki, Vesa Saaristo, Aleksi Lahtinen and Pyry Kantanen (rOpenGov 2024). sotkanet: Sotkanet Open Data Access and Analysis. R package version 0.9.80. URL: https://github.com/rOpenGov/sotkanet
We are grateful to all [contributors](https://github.com/ropengov/sotkanet/graphs/contributors), and for the [Sotkanet](https://sotkanet.fi/sotkanet/en/index?) Statistics and Indicator Bank! This project is part of [rOpenGov](https://ropengov.org).
### Disclaimer
This package is in no way officially related to or endorsed by The Finnish Institute for Health and Welfare (Terveyden ja hyvinvoinnin laitos, THL).
For information about THL's open data license and limitation of liability, please see their website:
* In English: [THL's open data license and limitation of liability](https://yhteistyotilat.fi/wiki08/display/THLKA/THL%27s+open+data+license+and+limitation+of+liability)
* In Finnish: [THL:n avoimen datan lisenssi ja vastuuvapauslauseke](https://yhteistyotilat.fi/wiki08/display/THLKA/THL%3An+avoimen+datan+lisenssi+ja+vastuuvapauslauseke)
[Sotkanet data portal]: https://sotkanet.fi/sotkanet/fi/index
[National Institute for Health and Welfare (THL)]: https://thl.fi/fi/
[data description]: https://sotkanet.fi/sotkanet/en/data
[github-watch-badge]: https://img.shields.io/github/watchers/ropengov/sotkanet.svg?style=social
[github-watch]: https://github.com/ropengov/sotkanet/watchers
[github-star-badge]: https://img.shields.io/github/stars/ropengov/sotkanet.svg?style=social
[github-star]: https://github.com/ropengov/sotkanet/stargazers
Owner
- Name: rOpenGov
- Login: rOpenGov
- Kind: organization
- Location: Finland
- Website: http://ropengov.org
- Twitter: ropengov
- Repositories: 60
- Profile: https://github.com/rOpenGov
Open government data analytics with R
Citation (CITATION.cff)
# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# --------------------------------------------
cff-version: 1.2.0
message: 'To cite package "sotkanet" in publications use:'
type: software
license: BSD-2-Clause
title: 'sotkanet: Sotkanet Open Data Access and Analysis'
version: 0.10.0
abstract: Access statistical information on welfare and health in Finland from the
Sotkanet open data portal <https://sotkanet.fi/sotkanet/fi/index>.
authors:
- family-names: Lahti
given-names: Leo
email: leo.lahti@iki.fi
orcid: https://orcid.org/0000-0001-5537-637X
- family-names: Happonen
given-names: Einari
- family-names: Kantanen
given-names: Pyry
orcid: https://orcid.org/0000-0003-2853-2765
- family-names: Lahtinen
given-names: Aleksi
orcid: https://orcid.org/0009-0009-9640-5187
preferred-citation:
type: generic
title: 'sotkanet: Sotkanet Open Data Access and Analysis'
authors:
- family-names: Lahti
given-names: Leo
email: leo.lahti@iki.fi
orcid: https://orcid.org/0000-0001-5537-637X
- family-names: Happonen
given-names: Einari
- family-names: Lehtomäki
given-names: Joona
- family-names: Parkkinen
given-names: Juuso
- family-names: Lehtomaki
given-names: Joona
- family-names: Saaristo
given-names: Vesa
- family-names: Kantanen
given-names: Pyry
orcid: https://orcid.org/0000-0003-2853-2765
- family-names: Lahtinen
given-names: Aleksi
orcid: https://orcid.org/0009-0009-9640-5187
url: https://github.com/rOpenGov/sotkanet
year: '2024'
notes: R package version 0.10.0
repository: https://CRAN.R-project.org/package=sotkanet
repository-code: https://github.com/ropengov/sotkanet
url: https://ropengov.github.io/sotkanet/
date-released: '2024-06-19'
contact:
- family-names: Lahti
given-names: Leo
email: leo.lahti@iki.fi
orcid: https://orcid.org/0000-0001-5537-637X
keywords:
- ropengov
- r-package
- finland
- health
- r
- sotkanet-data-portal
references:
- type: software
title: 'R: A Language and Environment for Statistical Computing'
notes: Depends
url: https://www.R-project.org/
authors:
- name: R Core Team
institution:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
version: '>= 3.2'
- type: software
title: curl
abstract: 'curl: A Modern and Flexible Web Client for R'
notes: Imports
url: https://jeroen.r-universe.dev/curl
repository: https://CRAN.R-project.org/package=curl
authors:
- family-names: Ooms
given-names: Jeroen
email: jeroen@berkeley.edu
orcid: https://orcid.org/0000-0002-4035-0289
year: '2024'
- type: software
title: lubridate
abstract: 'lubridate: Make Dealing with Dates a Little Easier'
notes: Imports
url: https://lubridate.tidyverse.org
repository: https://CRAN.R-project.org/package=lubridate
authors:
- family-names: Spinu
given-names: Vitalie
email: spinuvit@gmail.com
- family-names: Grolemund
given-names: Garrett
- family-names: Wickham
given-names: Hadley
year: '2024'
- type: software
title: RefManageR
abstract: 'RefManageR: Straightforward ''BibTeX'' and ''BibLaTeX'' Bibliography
Management'
notes: Imports
url: https://github.com/ropensci/RefManageR/
repository: https://CRAN.R-project.org/package=RefManageR
authors:
- family-names: McLean
given-names: Mathew W.
email: mathew.w.mclean@gmail.com
orcid: https://orcid.org/0000-0002-7891-9645
year: '2024'
- type: software
title: digest
abstract: 'digest: Create Compact Hash Digests of R Objects'
notes: Imports
url: https://dirk.eddelbuettel.com/code/digest.html
repository: https://CRAN.R-project.org/package=digest
authors:
- family-names: Lucas
given-names: Dirk Eddelbuettel with contributions by Antoine
email: edd@debian.org
- family-names: Tuszynski
given-names: Jarek
- family-names: Bengtsson
given-names: Henrik
- family-names: Urbanek
given-names: Simon
- family-names: Frasca
given-names: Mario
- family-names: Lewis
given-names: Bryan
- family-names: Stokely
given-names: Murray
- family-names: Muehleisen
given-names: Hannes
- family-names: Murdoch
given-names: Duncan
- family-names: Hester
given-names: Jim
- family-names: Wu
given-names: Wush
- family-names: Kou
given-names: Qiang
- family-names: Onkelinx
given-names: Thierry
- family-names: Lang
given-names: Michel
- family-names: Simko
given-names: Viliam
- family-names: Hornik
given-names: Kurt
- family-names: Neal
given-names: Radford
- family-names: Bell
given-names: Kendon
- family-names: Queljoe
given-names: Matthew
name-particle: de
- family-names: Suruceanu
given-names: Ion
- family-names: Denney
given-names: Bill
- family-names: Schumacher
given-names: Dirk
- family-names: Chang
given-names: Winston
- family-names: Attali
given-names: Dean
- family-names: Chirico.
given-names: Michael
year: '2024'
- type: software
title: frictionless
abstract: 'frictionless: Read and Write Frictionless Data Packages'
notes: Imports
url: https://docs.ropensci.org/frictionless/
repository: https://CRAN.R-project.org/package=frictionless
authors:
- family-names: Desmet
given-names: Peter
email: peter.desmet.work@gmail.com
orcid: https://orcid.org/0000-0002-8442-8025
- family-names: Oldoni
given-names: Damiano
email: damiano.oldoni@inbo.be
orcid: https://orcid.org/0000-0003-3445-7562
- family-names: Huybrechts
given-names: Pieter
email: pieter.huybrechts@inbo.be
orcid: https://orcid.org/0000-0002-6658-6062
year: '2024'
- type: software
title: httr2
abstract: 'httr2: Perform HTTP Requests and Process the Responses'
notes: Imports
url: https://httr2.r-lib.org
repository: https://CRAN.R-project.org/package=httr2
authors:
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2024'
- type: software
title: magrittr
abstract: 'magrittr: A Forward-Pipe Operator for R'
notes: Imports
url: https://magrittr.tidyverse.org
repository: https://CRAN.R-project.org/package=magrittr
authors:
- family-names: Bache
given-names: Stefan Milton
email: stefan@stefanbache.dk
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2024'
- type: software
title: remotes
abstract: 'remotes: R Package Installation from Remote Repositories, Including ''GitHub'''
notes: Suggests
url: https://remotes.r-lib.org
repository: https://CRAN.R-project.org/package=remotes
authors:
- family-names: Csárdi
given-names: Gábor
email: csardi.gabor@gmail.com
- family-names: Hester
given-names: Jim
- family-names: Wickham
given-names: Hadley
- family-names: Chang
given-names: Winston
- family-names: Morgan
given-names: Martin
- family-names: Tenenbaum
given-names: Dan
year: '2024'
- type: software
title: ggplot2
abstract: 'ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics'
notes: Suggests
url: https://ggplot2.tidyverse.org
repository: https://CRAN.R-project.org/package=ggplot2
authors:
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
orcid: https://orcid.org/0000-0003-4757-117X
- family-names: Chang
given-names: Winston
orcid: https://orcid.org/0000-0002-1576-2126
- family-names: Henry
given-names: Lionel
- family-names: Pedersen
given-names: Thomas Lin
email: thomas.pedersen@posit.co
orcid: https://orcid.org/0000-0002-5147-4711
- family-names: Takahashi
given-names: Kohske
- family-names: Wilke
given-names: Claus
orcid: https://orcid.org/0000-0002-7470-9261
- family-names: Woo
given-names: Kara
orcid: https://orcid.org/0000-0002-5125-4188
- family-names: Yutani
given-names: Hiroaki
orcid: https://orcid.org/0000-0002-3385-7233
- family-names: Dunnington
given-names: Dewey
orcid: https://orcid.org/0000-0002-9415-4582
- family-names: Brand
given-names: Teun
name-particle: van den
orcid: https://orcid.org/0000-0002-9335-7468
year: '2024'
- type: software
title: knitr
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
notes: Suggests
url: https://yihui.org/knitr/
repository: https://CRAN.R-project.org/package=knitr
authors:
- family-names: Xie
given-names: Yihui
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
year: '2024'
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
notes: Suggests
url: https://testthat.r-lib.org
repository: https://CRAN.R-project.org/package=testthat
authors:
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
year: '2024'
version: '>= 3.0.0'
- type: software
title: roxygen2
abstract: 'roxygen2: In-Line Documentation for R'
notes: Suggests
url: https://roxygen2.r-lib.org/
repository: https://CRAN.R-project.org/package=roxygen2
authors:
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
orcid: https://orcid.org/0000-0003-4757-117X
- family-names: Danenberg
given-names: Peter
email: pcd@roxygen.org
- family-names: Csárdi
given-names: Gábor
email: csardi.gabor@gmail.com
- family-names: Eugster
given-names: Manuel
year: '2024'
- type: software
title: markdown
abstract: 'markdown: Render Markdown with ''commonmark'''
notes: Suggests
url: https://github.com/rstudio/markdown
repository: https://CRAN.R-project.org/package=markdown
authors:
- family-names: Xie
given-names: Yihui
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
- family-names: Allaire
given-names: JJ
- family-names: Horner
given-names: Jeffrey
year: '2024'
- type: software
title: kableExtra
abstract: 'kableExtra: Construct Complex Table with ''kable'' and Pipe Syntax'
notes: Suggests
url: http://haozhu233.github.io/kableExtra/
repository: https://CRAN.R-project.org/package=kableExtra
authors:
- family-names: Zhu
given-names: Hao
email: haozhu233@gmail.com
orcid: https://orcid.org/0000-0002-3386-6076
year: '2024'
- type: software
title: rmarkdown
abstract: 'rmarkdown: Dynamic Documents for R'
notes: Suggests
url: https://pkgs.rstudio.com/rmarkdown/
repository: https://CRAN.R-project.org/package=rmarkdown
authors:
- family-names: Allaire
given-names: JJ
email: jj@posit.co
- family-names: Xie
given-names: Yihui
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
- family-names: Dervieux
given-names: Christophe
email: cderv@posit.co
orcid: https://orcid.org/0000-0003-4474-2498
- family-names: McPherson
given-names: Jonathan
email: jonathan@posit.co
- family-names: Luraschi
given-names: Javier
- family-names: Ushey
given-names: Kevin
email: kevin@posit.co
- family-names: Atkins
given-names: Aron
email: aron@posit.co
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
- family-names: Cheng
given-names: Joe
email: joe@posit.co
- family-names: Chang
given-names: Winston
email: winston@posit.co
- family-names: Iannone
given-names: Richard
email: rich@posit.co
orcid: https://orcid.org/0000-0003-3925-190X
year: '2024'
- type: software
title: covr
abstract: 'covr: Test Coverage for Packages'
notes: Suggests
url: https://covr.r-lib.org
repository: https://CRAN.R-project.org/package=covr
authors:
- family-names: Hester
given-names: Jim
email: james.f.hester@gmail.com
year: '2024'
- type: software
title: ggrepel
abstract: 'ggrepel: Automatically Position Non-Overlapping Text Labels with ''ggplot2'''
notes: Suggests
url: https://ggrepel.slowkow.com/
repository: https://CRAN.R-project.org/package=ggrepel
authors:
- family-names: Slowikowski
given-names: Kamil
email: kslowikowski@gmail.com
orcid: https://orcid.org/0000-0002-2843-6370
year: '2024'
GitHub Events
Total
Last Year
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| antagomir | l****i@i****i | 93 |
| Pyry Kantanen | p****n@g****m | 22 |
| antagomir | a****r@o****p | 21 |
| GitHub Actions | a****s@g****m | 10 |
| Pyry Kantanen | p****n@u****i | 7 |
| antagomir | a****r@l****i | 5 |
| Juuso Parkkinen | o****r | 2 |
| vsaaristo | v****o@t****i | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 17
- Total pull requests: 11
- Average time to close issues: over 1 year
- Average time to close pull requests: 4 days
- Total issue authors: 5
- Total pull request authors: 4
- Average comments per issue: 1.53
- Average comments per pull request: 1.0
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: 5 days
- Issue authors: 0
- Pull request authors: 2
- Average comments per issue: 0
- Average comments per pull request: 0.75
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- pitkant (11)
- antagomir (3)
- TuomoNieminen (1)
- vsaaristo (1)
- arhot (1)
Pull Request Authors
- Allaht2 (10)
- pitkant (5)
- arvitolvanen (2)
- vsaaristo (2)
Top Labels
Issue Labels
enhancement (9)
bug (2)
good first issue (2)
Pull Request Labels
enhancement (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 296 last-month
- Total dependent packages: 1
- Total dependent repositories: 0
- Total versions: 8
- Total maintainers: 1
cran.r-project.org: sotkanet
Sotkanet Open Data Access and Analysis
- Homepage: https://ropengov.github.io/sotkanet/
- Documentation: http://cran.r-project.org/web/packages/sotkanet/sotkanet.pdf
- License: BSD_2_clause + file LICENSE
-
Latest release: 0.10.1
published over 1 year ago
Rankings
Dependent packages count: 18.7%
Forks count: 21.9%
Stargazers count: 22.5%
Average: 28.8%
Dependent repos count: 35.5%
Downloads: 45.6%
Maintainers (1)
Last synced:
8 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/render-readme.yaml
actions
- actions/checkout v2 composite
- peter-evans/repository-dispatch v1 composite
- r-lib/actions/setup-pandoc master composite
- r-lib/actions/setup-r master composite
- r-lib/actions/setup-r-dependencies master composite
.github/workflows/rogtemplate-gh-pages.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
DESCRIPTION
cran
- R >= 3.2 depends
- curl * imports
- httr * imports
- jsonlite * imports
- covr * suggests
- devtools * suggests
- ggplot2 * suggests
- ggrepel * suggests
- kableExtra * suggests
- knitr * suggests
- magrittr * suggests
- markdown * suggests
- rmarkdown * suggests
- roxygen2 * suggests
- testthat >= 3.0.0 suggests