download_model_outputs: Download metabolism model outputs

Description Usage Arguments Value Examples

View source: R/download_model_outputs.R

Description

Download complete fits from metabolism estimation models. This function will download and load five data frames per model that collectively describe the model fits. See ScienceBase for a complete description of model output files. See metadata associated with data release item 6: Model outputs.

Usage

1
2
3
4
5
6
download_model_outputs(
  sitename,
  save_dir = temp,
  overwrite_file = FALSE,
  res = c("5min", "10min", "12min", "15min", "30min", "60min")
)

Arguments

sitename

The sitename should be in the same format used in the site data. See examples below.

save_dir

Path to save .zip file containing model outputs. If save_dir isn't specified, the zip file containing model outputs will not be saved locally.

overwrite_file

Boolean indicating if .zip folder should be overwritten if it already exists. Default is FALSE.

res

a character string that indicates which available model fits should be returned, where RES indicates the resolution of the input data. Default returns all available fits for a given sitename.

Value

Returns a nested list containing one list per model fit, each of which contains five data frames per site that describe the model fits.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
download_model_outputs("nwis_01184000")

download_model_outputs("nwis_01400500",res=c("15min","30min","60min"))


## Not run: 

download_model_outputs("nwis_01184000",save_dir = "./data/model_outputs")

## End(Not run)

lekoenig/Appling356MetabolicRegimes documentation built on Dec. 21, 2021, 9:51 a.m.