-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #451 from orichters/smallfix
cleanup FE prices in cs2
- Loading branch information
Showing
2 changed files
with
28 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#' Read Population from GDX file | ||
#' | ||
#' | ||
#' Read Population data from a GDX file into a magpie object. | ||
#' | ||
#' | ||
#' | ||
#' | ||
#' @param gdx a GDX list as created by readGDX, or the file name of a gdx | ||
#' file(file name is recommended as this speeds up the code) | ||
#' @author Lavinia Baumstark | ||
#' @examples | ||
#' | ||
#' | ||
#' \dontrun{gdp <- readPopulation(gdx)} | ||
#' | ||
#' | ||
#' @export | ||
#' @importFrom gdx readGDX | ||
#' @importFrom magclass getNames<- | ||
readPopulation <- function(gdx){ | ||
pop <- readGDX(gdx, name=c('pm_pop','pm_datapop'), format="first_found") * 1000 | ||
readPopulation <- function(gdx) { | ||
pop <- readGDX(gdx, name = c("pm_pop", "pm_datapop"), format = "first_found") * 1000 | ||
getNames(pop) <- "population [million]" | ||
return(pop) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters