Complete metadata records for HarvestChoice 5-arc-minute inidcators.

vi.R

Format

A data.table object

Examples

# List of metadata elements that may be accessed though `vi` names(vi)
#> [1] "varCode" "varLabel" "varTitle" "published" "isDomain" #> [6] "isProduct" "tbName" "version" "mxdName" "tbKey" #> [11] "varDesc" "unit" "dec" "year" "yearEnd" #> [16] "genRaster" "cat1" "cat2" "cat3" "extent" #> [21] "type" "format" "aggType" "aggFun" "owner" #> [26] "caveat" "sources" "sourceMini" "citation" "dPublished" #> [31] "dAuthor" "dTopic" "dCrop" "dKeywords" "classColors" #> [36] "classBreaks" "classLabels" "aggFunR"
# Print full metadata for cassava yield t(vi["cass_y"])
#> [,1] #> varCode "cass_y" #> varLabel "Cassava yield '05" #> varTitle "Cassava Yield (kg/ha, 2005)" #> published "TRUE" #> isDomain "FALSE" #> isProduct "FALSE" #> tbName "cell5m_spam2005v2r0_yield" #> version "SChEF r2.5" #> mxdName "spam05_cell5m_y" #> tbKey "CELL5M" #> varDesc "Spatially disaggregated production statistics of circa 2005 using the Spatial Production Allocation Model (SPAM). Values are for 5 arc-minute grid cells." #> unit "kg/ha" #> dec "0" #> year "2005" #> yearEnd NA #> genRaster "TRUE" #> cat1 "Agriculture" #> cat2 "Yield" #> cat3 "Cassava" #> extent "sub-Saharan Africa" #> type "continuous" #> format "raster" #> aggType "WGHTD" #> aggFun "SUM(cass_p)/SUM(cass_h)*1000" #> owner "u.wood-sichra@cgiar.org" #> caveat NA #> sources "You, L., U. Wood-Sichra, S. Fritz, Z. Guo, L. See, and J. Koo. 2014. Spatial Production Allocation Model (SPAM) 2005 v2.0." #> sourceMini "IFPRI, 2015" #> citation "HarvestChoice, 2015. \"Cassava Yield (kg/ha, 2005)\", International Food Policy Research Institute, Washington, DC., and University of Minnesota, St. Paul, MN. Available online at http://harvestchoice.org/data/cass_y." #> dPublished "TRUE" #> dAuthor "Ulrike Wood-Sichra" #> dTopic "Production" #> dCrop "Cassava" #> dKeywords "Crops, Crop Yield, Cassava Yield, Sub-Saharan Africa, Cassava Production" #> classColors "#ffffffff|#E7E1EF|#DFD1E6|#D8C1DE|#D2B2D6|#CDA4CF|#C996C8|#D084BF|#D872B6|#DF5EAB|#E3469C|#E62F8E|#E0227B|#D61967|#CB1054|#B60A4D|#A10346|#8D003B|#7A002D|#67001F" #> classBreaks "0|471.5|1382.7|2142.35|2857.4|3534.55|4156.3|4748.25|5306.15|5821.45|6250.8|6592.05|7145.8|7868.15|8569.6|9723.1|11589|15262.2|24548.15|38833.3" #> classLabels "none|under 472|472 - 1383|1383 - 2143|2143 - 2858|2858 - 3535|3535 - 4157|4157 - 4749|4749 - 5307|5307 - 5822|5822 - 6251|6251 - 6593|6593 - 7146|7146 - 7869|7869 - 8570|8570 - 9724|9724 - 11589|11589 - 15263|15263 - 24549|over 24549" #> aggFunR "sum(cass_p, na.rm=TRUE)/sum(cass_h, na.rm=TRUE)*1000"
# Get specific metadata elements vi["cass_y", .(varTitle, unit)]
#> varTitle unit #> 1: Cassava Yield (kg/ha, 2005) kg/ha
# Count of layers by category vi[, .N, by=.(cat1, cat2)]
#> cat1 cat2 N #> 1: Agriculture Livestock 16 #> 2: Administrative National 3 #> 3: Administrative Provinces 2 #> 4: Administrative Districts 2 #> 5: Agroecology Agro-Ecological Zones 4 #> 6: Agroecology Land Cover and Use 25 #> 7: Administrative Raster Grid 3 #> 8: Agroecology Elevation 1 #> 9: Agroecology Farming Systems 2 #> 10: Agroecology Pests and Diseases 8 #> 11: Agroecology Climate 7 #> 12: Markets Marketshed 1 #> 13: Demographics Population 12 #> 14: Markets Portshed 2 #> 15: Demographics Income and Poverty 36 #> 16: Agroecology Soil Resources 19 #> 17: Markets Travel Time 11 #> 18: Agriculture Harvested Area 144 #> 19: Agriculture Production 144 #> 20: Agriculture Value of Production 167 #> 21: Agriculture Yield 144 #> 22: Demographics Health and Nutrition 90 #> 23: Agriculture Yield Variability 2 #> cat1 cat2 N