Skip to contents

Request crop data (seed_harvest_wide) from Snowflake within a certain season range

Usage

download_crops(conn, gdd_info_formatted, min_year = NA, max_year = NA)

Arguments

conn

The connection to the Snowflake database

min_year

Minimum crop season year to pull from. Defaults to NA (pull all years)

max_year

Maximum crop season year to pull from. Defaults to NA (pull all years)

Value

The seed_harvest_df data frame.

Examples

seed_harvest_wide <- download_crops(myconn, min_year=2020, max_year=2022)
#> Error in loadNamespace(x): there is no package called ‘gtools’