If a file is provided, open data from file. If not, call download_pa().

load_pa(ts, te, area, storage_file = NULL, api_key = NULL)

Arguments

ts

start date

te

end date

area

a sf, sfc, SpatRaster or SpatVector object

storage_file

file path where PurpleAir data is stored

api_key

API key for PurpleAir