GithubHelp home page GithubHelp logo

path-global-health / pathtools Goto Github PK

View Code? Open in Web Editor NEW
3.0 7.0 2.0 1.96 MB

R package for cross-portfolio code and resources

Home Page: https://path-global-health.github.io/PATHtools/

License: GNU General Public License v3.0

R 100.00%

pathtools's Introduction

PATHtools

The goal of PATHtools is to provide a common set of miscellanous R functions and assets that could be used by any R-based analytical work. This will allow us to share common resources, which will prevent duplicate coding and version-control issues.

This is a public repository, which means that there will never be private or protected data and/or code contained within this package.

Installation

The PATHtools package is hosted on Github and constantly under development. You can install the package like so:

install.packages("devtools")
devtools::install_github("PATH-Global-Health/PATHtools")

Examples

library(PATHtools)

# Shapefiles --------------------
# Check for available shapefiles
available_shapefile(country = "Senegal")
available_shapefile(admin_level = 2)

# Load shapefile
shp <- load_shapefile(country = "Nigeria", admin_level = 1)
plot(shp)

# Save GeoJSON file locally
load_shapefile(country = "Nigeria", admin_level = 1, download = TRUE)

Contributing

Requesting features

You can suggest new ideas or requests for features by opening an issue on Github. Please provide as much description and examples as possible, and link to external sources (if possible). We will use Issue to discuss developing new features, and document progress.

Providing new functions

Before starting a new contribution, please check the existing issues and open a new issue if needed. You can add new code to the package by creating a new fork and submitting a pull request (PR). Please reference the issue your PR is addressing, and run devtools::check() before submission.

pathtools's People

Contributors

justinmillar avatar

Stargazers

Soe H Aung avatar  avatar  avatar

Watchers

Jonathan Drummey avatar  avatar Tim McDonald avatar  avatar  avatar  avatar  avatar

pathtools's Issues

Create README

Develop README which describes package purpose, installation, contributing, and licensing.

The `surface` argument of `getRaster()` is deprecated as of malariaAtlas 1.6.0.

Error in getRasterDatasetIdFromSurface(availableRasters, individual_surface) :
Surface with title Global friction surface enumerating land-based travel speed with access to motorized transport for a nominal year 2019 not found. Please use the dataset_id parameter instead anyway. As thes surface parameter will be removed in next version.
In addition: Warning message:
The surface argument of getRaster() is deprecated as of malariaAtlas 1.6.0.
ℹ The argument 'surface' has been deprecated. It will be removed in the next version. Please
use dataset_id to specify the raster instead.
ℹ The deprecated feature was likely used in the PATHtools package.

Voronoi tesselations from points

Probably will be multiple functions depending on the feature set we aim to cover. I do think that we will want sf-focused output (at least as an option) since sp is in the process of depreciation.

Some features to consider:

  • Input type (data.frame, sf/sp object)
  • Bounding shapefile (options to restrict within polygons/fields from reference shapefile)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.