# NOT RUN {
#missing stats implies all stats as given by pkgOptions("stats")
# }
# NOT RUN {
getCtryNlData("KEN", nlType="VIIRS", ignoreMissing=NULL)
# }
# NOT RUN {
#returns all existing data i.e. all nlPeriods and all stats for KEN
# }
# NOT RUN {
getCtryNlData("KEN", ignoreMissing=TRUE)
# }
# NOT RUN {
#same as ignoreMissing=NULL. Returns all existing data i.e. all nlPeriods
#and all stats for KEN
# }
# NOT RUN {
getCtryNlData(ctryCode="KEN", nlType="VIIRS", ignoreMissing=FALSE)
# }
# NOT RUN {
#for any missing data between 201204 to present download and process the
#data then return all data
# }
# NOT RUN {
getCtryNlData("KEN", nlPeriod=c("existingNlPeriod", "missingNlPeriod"),
stats=c("sum", "unknownStat"), ignoreMissing=NULL)
# }
# NOT RUN {
#Returns NULL
#(ignoreMissing=NULL returns all data if exists or if any is missing returns NULL)
# }
# NOT RUN {
getCtryNlData("KEN", nlPeriods=c("existingNlPeriod", "missingNlPeriod"),
stats=c("existingStat", "missingStat"), ignoreMissing=TRUE)
# }
# NOT RUN {
#Returns existingStat for existingNlPeriods
#(ignoreMissing=TRUE returns only existing data)
# }
# NOT RUN {
getCtryNlData("KEN", nlYearPeriods=c("existingNlPeriod", "missingNlPeriod"),
stats=c("sum", "unknownStat"), ignoreMissing=FALSE)
# }
# NOT RUN {
#Runs processNlData for missingStat in "missingNlPeriod" and returns
#"existingStat" and "missingStat" for both "existingNlPeriod" and
#"missingNlPeriod"
#(ignoreMissing=FALSE must return all data: forces processing of any missing)
# }
Run the code above in your browser using DataLab