bcgov / wetlandmapR

Scripts, tools and example data for mapping wetland ecosystems using data driven R statistical methods like Random Forests and open source GIS
Apache License 2.0
17 stars 6 forks source link

Save model output summary to file #16

Open sicasley opened 5 years ago

sicasley commented 5 years ago

OOB error gets displayed on screen when running wetland_model(), but there is no lasting record of this. In addition to saving diagnostics (#11), it would be useful to save a summary of the model output - which includes OOB error - to file for reference. This can be achieved by running

> print(model.out)

To save this output to file, for example:

> sink("./output/20190703-130403/20190703-130403_model_results.txt") > print(model.out) > sink()

Look at incorporating this as part of wetland_model().