write_knnst: Write all the knnst disagg data to disk

View source: R/write_knnst.R

write_knnstR Documentation

Write all the knnst disagg data to disk

Description

write_knnst() writes all of the disaggregated data and the index years selected for the disaggregation for each simulation to disk.

Usage

write_knnst(disagg, path)

Arguments

disagg

A knnst object

path

A character scalar containing the path to the folder to write the disaggregated data.

Details

The disaggregated data and the index years are saved to separate files. The disaggregated data has one file for each simulation, while all index years are saved to one file. The disaggregated data are saved as "disagg_[n].csv", where n is the simulation number. All index years are saved to index_years.csv. A README.txt file is also created which includes meta data associated with how/when the data were generated.

Examples

## Not run: 
write_knnst(ex_disagg, ".")

## End(Not run)


rabutler-usbr/knnstdisagg documentation built on Sept. 14, 2023, 2:47 p.m.