g2covariates

g2Covariates is an R package that provides easy access to various WorldPop geospatial covariates

https://github.com/wpgp/g2covariates

Science Score: 67.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
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.4%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

g2Covariates is an R package that provides easy access to various WorldPop geospatial covariates

Basic Info
  • Host: GitHub
  • Owner: wpgp
  • License: mit
  • Language: R
  • Default Branch: main
  • Size: 0 Bytes
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 11 months ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

DOI

g2Covariates

g2c_download is an R package that provides easy access to various WorldPop geospatial covariates.

Installation

To install the package from GitHub, first ensure you have the devtools package installed:

r install.packages("devtools") # Install devtools if not already installed devtools::install_github("wpgp/g2Covariates")

Usage

Once installed, load the package in your R session:

r library(g2Covariates)

Functions avaliable

  • g2c_download(covariate, ISO, prj_year, rst_mask, output_dir)

Downaloding covariate for "ISO" country for "prjyear" year using "rstmask" as mask.

Function to print all covariates avalible

getnamescovariates()

[1] "Coastline" "Elevation" "Slope" "Built_surface" "Built_volume" "Built_surface_NRES" [7] "Built_volume_NRES" "built_S_dist" "esalc_11_dst" "esalc_40_dst" "esalc_130_dst" "esalc_140_dst" [13] "esalc_150_dst" "esalc_160_dst" "esalc_190_dst" "esalc_200_dst" "esalc_210_dst" "viirs" [19] "dist_inland_water" "Precipitation" "Temperature" "WDPA" "highway_dist_osm" "rd_intrs_dist_osm" [25] "waterbodies_dist_osm" "watermask" "building_count_gl" "building_count_ms"

Function to get neighbor countries

nb_countries <- get_global_nb() nb_countries[["NPL"]] [1] "CHN" "IND"

Dependencies

This package requires the following R packages: - terra - jsonlite

Ensure they are installed before using the package:

r install.packages(c("terra", "jsonlite"))

Contributing

Contributions are welcome! If you'd like to improve this package, please: 1. Fork the repository. 2. Make changes in a new branch. 3. Submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use g2Covariates in your research, please cite:

Bondarenko M., Priyatikanto R., Zhang W., McKeen T., Nosatiuk B. and Tejedor-Garavito N. (2025). g2Covariates is an R package that provides easy access to various WorldPop geospatial covariates. (1.0.0) DOI: 10.5281/zenodo.15267943 [Computer software]. GitHub. https://github.com/wpgp/g2Covariates

bibtex @software{g2Covariates, title = {g2Covariates is an R package that provides easy access to various WorldPop geospatial covariates.}, author = {Bondarenko M., Priyatikanto R., Zhang W., McKeen T., Nosatiuk B. and Tejedor-Garavito N..}, year = 2025, month = 4, publisher = {GitHub}, doi = {10.5281/zenodo.15267943}, url = {https://github.com/wpgp/g2Covariates}, version = {1.0.0} }

Getting Help

  • Issues & Support: https://github.com/wpgp/g2Covariates/issues
  • WorldPop SDI: https://sdi.worldpop.org

Owner

  • Name: WorldPop
  • Login: wpgp
  • Kind: organization
  • Email: info@worldpop.org
  • Location: University of Southampton

Open Spatial Demographic Data and Research

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  g2c_download is an R package that provides easy access to
  various WorldPop geospatial covariates
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Maksym
    family-names: Bondarenko
    email: mb4@soton.ac.uk
    orcid: 'https://orcid.org/0000-0003-4958-6551'
    affiliation: WorldPop
  - given-names: Wenbin
    family-names: Zhang
    email: zwb1027@gmail.com
    affiliation: WorldPop
    orcid: 'https://orcid.org/0000-0002-9295-1019'
  - given-names: Natalia
    family-names: Tejedor-Garavito
    email: n.tejedor-garavito@soton.ac.uk
    orcid: 'https://orcid.org/0000-0002-1140-6263'
    affiliation: WorldPop
  - given-names: Tom
    family-names: McKeen
    email: t.l.mckeen@soton.ac.uk
    affiliation: WorldPop
  - given-names: Borys
    family-names: Nosatiuk
    email: b.nosatiuk@soton.ac.uk
    affiliation: WorldPop
  - given-names: Rhorom
    family-names: Priyatikanto
    email: rhorom.priyatikanto@soton.ac.uk
    orcid: 'https://orcid.org/0000-0003-1203-2651'
    affiliation: WorldPop
identifiers:
  - type: doi
    value: 10.5281/zenodo.15267943
repository-code: 'https://github.com/wpgp/g2Covariates'
license: MIT
version: v1.0.0
date-released: '2025-04-23'

GitHub Events

Total
  • Release event: 1
  • Push event: 7
  • Create event: 3
Last Year
  • Release event: 1
  • Push event: 7
  • Create event: 3

Dependencies

DESCRIPTION cran
  • R >= 3.2.0 depends
  • jsonlite * imports
  • parallel * imports
  • utils * imports