R/fullDATAINDIA.R

Defines functions fullDATAINDIA

Documented in fullDATAINDIA

#' @title fullDATAINDIA
#' Calculates foodcrops data for India taken from here: https://eands.dacnet.nic.in/APY_96_To_07.htm
#' @author Anastasis Giannousakis
#' @importFrom madrat calcOutput
#' @examples
#' \dontrun{
#' a <- retrieveData("DATAINDIA")
#' }
#' @return Foodcrop India data


fullDATAINDIA <- function() {

  for (i in c("Area", "Production", "Yield")) calcOutput("IndiaFoodcrop",
                                                       subtype = i,
                                                       aggregate = "Zonal.Council",
                                                       file = paste0(i, "ZonalCouncil", ".mz"))

  for (i in c("Area", "Production", "Yield")) calcOutput("IndiaFoodcrop",
                                                       subtype = i,
                                                       aggregate = "Country",
                                                       file = paste0(i, "Country", ".mz"))


}
pik-piam/mrfable documentation built on Jan. 19, 2024, 9:14 p.m.