Skip to content

Commit

Permalink
use CountryToCellMapping from mappingfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-sauer committed May 6, 2024
1 parent 47e0409 commit 4ff3b0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/readFAO_FRA2015.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ readFAO_FRA2015 <- function(subtype) { # nolint
data$Country <- as.character(data$Country) # nolint

## Now we want to make sure that the mapping we have can be applied to the dataset in hand
mapping <- toolGetMapping(name = "CountryToCellMapping.rds", where = "mrcommons")
mapping <- toolGetMapping(name = "CountryToCellMapping.csv", type = "cell", where = "mappingfolder")

# See how many countries are available in the mapping file
mapIso <- sort(unique(mapping$iso))
Expand Down Expand Up @@ -132,7 +132,7 @@ readFAO_FRA2015 <- function(subtype) { # nolint
data$Country <- as.character(data$Country) # nolint

## Now we want to make sure that the mapping we have can be applied to the dataset in hand
mapping <- toolGetMapping(name = "CountryToCellMapping.rds", where = "mrcommons")
mapping <- toolGetMapping(name = "CountryToCellMapping.csv", type = "cell", where = "mappingfolder")

# See how many countries are available in the mapping file
mapIso <- sort(unique(mapping$iso))
Expand Down Expand Up @@ -197,7 +197,7 @@ readFAO_FRA2015 <- function(subtype) { # nolint
data$Country <- as.character(data$Country) # nolint

## Now we want to make sure that the mapping we have can be applied to the dataset in hand
mapping <- toolGetMapping(name = "CountryToCellMapping.rds", where = "mrcommons")
mapping <- toolGetMapping(name = "CountryToCellMapping.csv", type = "cell", where = "mappingfolder")

# See how many countries are available in the mapping file
mapIso <- sort(unique(mapping$iso))
Expand Down Expand Up @@ -264,7 +264,7 @@ readFAO_FRA2015 <- function(subtype) { # nolint
data$Country <- as.character(data$Country) # nolint

## Now we want to make sure that the mapping we have can be applied to the dataset in hand
mapping <- toolGetMapping(name = "CountryToCellMapping.rds", where = "mrcommons")
mapping <- toolGetMapping(name = "CountryToCellMapping.csv", type = "cell", where = "mappingfolder")

# See how many countries are available in the mapping file
mapIso <- sort(unique(mapping$iso))
Expand Down

0 comments on commit 4ff3b0c

Please sign in to comment.