Skip to content

Commit

Permalink
Update URL to get from the 2015 release, as the 2012 is not accessibl…
Browse files Browse the repository at this point in the history
…e anymore.
  • Loading branch information
xfim committed May 20, 2016
1 parent ec27580 commit cbd8bfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/Getters.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#'
#' @export

PolityGet <- function(url = 'http://www.systemicpeace.org/inscr/p4v2012.sav',
PolityGet <- function(url = 'http://www.systemicpeace.org/inscr/p4v2015.sav',
vars = NULL, OutCountryID = 'iso2c',
standardCountryName = TRUE,
na.rm = TRUE, duplicates = 'message', fromLast = FALSE){
Expand Down
4 changes: 2 additions & 2 deletions R/WinsetCreator.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#' @import countrycode
#' @export

WinsetCreator <- function(PolityUrl = 'http://www.systemicpeace.org/inscr/p4v2012.sav', DpiUrl = 'http://bit.ly/1jZ3nmM', OutCountryID = 'iso2c', na.rm = TRUE){
WinsetCreator <- function(PolityUrl = 'http://www.systemicpeace.org/inscr/p4v2015.sav', DpiUrl = 'http://bit.ly/1jZ3nmM', OutCountryID = 'iso2c', na.rm = TRUE){
# CRAN finess
xrcomp <- xropen <- parcomp <- military <- NULL

Expand Down Expand Up @@ -106,4 +106,4 @@ WinsetCreator <- function(PolityUrl = 'http://www.systemicpeace.org/inscr/p4v201
Out <- Out[, c(OutCountryID, 'country', 'year', 'W', 'ModS')]
Out <- Out[order(Out[, OutCountryID], Out[, 'year']), ]
return(Out)
}
}

0 comments on commit cbd8bfc

Please sign in to comment.