corridor

CorridoR is a wrapper for the Northern Canadian Corridor data on the potential impact of the Northern Corridor on Canadian economy and global maritime traffic.

https://github.com/warint/corridor

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 (10.8%) to scientific vocabulary

Keywords

corridor distance-calculation economics marine marinetraffic northwest trade

Keywords from Contributors

innovation research-and-development statistics-canada progress
Last synced: 6 months ago · JSON representation ·

Repository

CorridoR is a wrapper for the Northern Canadian Corridor data on the potential impact of the Northern Corridor on Canadian economy and global maritime traffic.

Basic Info
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
corridor distance-calculation economics marine marinetraffic northwest trade
Created almost 6 years ago · Last pushed over 4 years ago
Metadata Files
Readme License Citation

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# corridoR





## Overview

Although maritime transport has lost its importance for the transport of people, it has become the most important mode of transport for goods. Indeed, approximately 80% of global merchandise is traded by sea. As an essential part of international trade, commercial shipping relies on strategic trade routes to move goods efficiently.

corridoR is an R wrapper to illustrate the reality of world maritime trade by offering researchers and students access to real maritime distances between the different major ports of the planet.  Too often, distances are calculated as the crow flies, but CorridoR uses existing sea routes to make its calculations. 

The corridoR project was also developed to analyze the potential impact of the Northern Corridor on the Canadian economy and global maritime traffic. We took more than 20 000 ship voyages passing through the Panama Canal and calculated their marine distances.

To analyze the applicability and the profitability of the Canadian Northwest Passage, we took the same 20 000  routes and make them passed hypothetically through the Canadian Arctic. We then compared the distances to see which trips were shorter by the Northern Corridor. Distances are in nautical miles.

## Data Summary

The data are divided as follows: 

`MMSI`: The numerical code associated with each ship voyages. 

`Previous_Port1`: The name of the first port of the trip (PP1).

`Previous_Port2`: The name of the second port of the trip (PP2).

`Next_Port1`: The name of the third port of the trip (NP1).

`Next_Port2`: The name of the fourth port of the trip (NP2).

`Country`: The country associated to the each port (PP1,PP2,NP1,NP2).

`ISO`: Country's ISO code for each port (PP1,PP2,NP1,NP2).

`Longitude and Latitude`: for each port.

`Distance_PA`: Distance calculated for ships passing through the Panama Canal.

`Distance_PA_PP1toPP2`: Distance between Previous_Port1 and Previous_Port2. Same logic applies for other ports.

`Distance_PA_Total`: Total distance for a selected ship voyage through Panama Canal.

`Distance_NC`: Distance calculated for ships passing through the Northern Corridor.

`Distance_NC_PP1toPP2`: Distance between Previous_Port1 and Previous_Port2. Same logic applies for other ports.

`Distance_NC_Total`: Total distance for a selected ship voyage through the Northern Corridor.

`Distance_Analysys`: Distance_NC_Total minus Distance_PA_Total to analyse the shortest distance. If the value is negative, th Northern Corridor is shorter

# Practical usage

## Quick start

First, install corridoR:

```{r, eval=FALSE}
devtools::install_github("warint/corridoR")
```


Next, call corridoR to make sure everything is installed correctly.

```{r}
library(corridoR)
```

## How-To

### Step 1: Getting the country's ISO code

A user needs to enter the ISO code of a country. To have access to this code, the following function provides this information.

```{r, eval = FALSE}
corridor_country() # A list of all countries ISO code will be produced

corridor_country(country = "Canada") # The ISO code for Canada will be produced

corridor_country("Canada") # The ISO code for Canada will be produced
```

### Step 2: Getting the port's name

To have access to the ports included in the data, the following function provides this information.

```{r, eval = FALSE}
corridor_port() # A list of all existing ports will be produced

corridor_port(country = "HOUS") # The port's name containing HOUS will be produced

corridor_port("HOUSTON") # The port's name containing HOUS will be produced
```

### Step 3: Getting the data

Once the user knows the ISO code , s.he can collect the data in a very easy way through this function:

Be careful, you must put the empty arguments ("") to collect the data!

```{r,eval=FALSE}
corridor_data() # It generates a data frame of the complete dataset

corridor_data(country = "CAN") # It generates a data frame of all the ships voyages containing a Canadian port

corridor_data(port = "QUEBEC") # It generates a data frame of all the ships voyages containing Houston.

corridor_data(country = "CAN", port = "QUEBEC") # It generates a data frame of all the ships voyages containing the country Canada and the port Quebec.
```

### Acknowledgments

The author would like to thank the Center for Interuniversity Research and Analysis of Organizations (CIRANO, Montreal) for its support, as well as Thibault Senegas, Marine Leroi and Martin Paquette. The usual caveats apply.

Owner

  • Name: Thierry Warin
  • Login: warint
  • Kind: user
  • Location: Montreal
  • Company: HEC Montréal

Professor of Data Science

Citation (citation.cff)

cff-version: 1.2.0
message: "If you use this package, please cite it as below."
authors:
- family-names: "Warin"
  given-names: "Thierry"
  orcid: "https://orcid.org/0000-0002-5921-3428"
title: "corridoR: Client for accessing real maritime distances between the different major ports of the planet"
version: 0.1.0
doi: 10.6084/m9.figshare.16826563.v1
date-released: 2019
url: "https://warint.github.io/corridoR/"

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 13
  • Total Committers: 4
  • Avg Commits per committer: 3.25
  • Development Distribution Score (DDS): 0.615
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Thierry Warin t****u@g****m 5
Marine Leroi m****i@s****o 4
Thierry Warin t****n@g****m 3
Martin Paquette p****m@n****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

DESCRIPTION cran
  • curl * imports
  • dplyr * imports
  • magrittr * imports
  • readr * imports
  • stringr * imports
  • knitr * suggests
  • rmarkdown * suggests