Sample API requests
ca_example_apireq(x)
The number of a sample API request to return
These sample API requests can be used in demos, documentation, and tests. x
should be an
integer:
x = 1
: Basic API request for Scripps data -- one point, 4 CGMs, 20 years of annual data.
x = 2
: Three Congressional districts, monthly data, 4 years
x = 3
: sf data frame with one feature, 1 GCM, 1 scenario, 2 years of daily data
x = 4
: sf data frame with two multipolygons, 1 GCM, 1 scenario, 20 years of annual data
x = 5
: Livheh data, ten census tracts, 20 years of daily temp data,
spatial aggregation mean
x = 6
: Livheh data, five census tracts (including one from #5), 5 years of daily temp
data, spatial aggregation = mean
x = 7
: Basic API request for Scripps data -- one point, 4 CGMs, 70 years of annual data.