View source: R/04-crop-analysis.R
| get_comprehensive_cdl_codes | R Documentation |
Get USDA Cropland Data Layer (CDL) codes for specific crops or crop categories. Supports all major crops and predefined categories.
get_comprehensive_cdl_codes(crop_type = "all")
crop_type |
Crop type or category name. Options include:
|
Vector of CDL codes
# Get corn code
corn_codes <- get_comprehensive_cdl_codes("corn")
print(corn_codes) # Should be 1
# Get all grain crop codes
grain_codes <- get_comprehensive_cdl_codes("grains")
print(grain_codes) # Should be vector of grain codes
# See available crop types (this will print to console)
get_comprehensive_cdl_codes("help")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.