sw_exampleData: Input data object for a site

sw_exampleDataR Documentation

Input data object for a site

Description

A dataset containing complete input data for an unspecified location.

Usage

sw_exampleData

Format

An object of class swInputData. Values correspond to example1; see example code.

Notes

Using sw_exampleData as basis for creating a site-specific simulation run is discouraged (even though there are many such examples throughout the documentation of this package). The recommended approach is to create a clean new object with the helper constructor swInputData() (or based on the prototype new("swInputData")) and then set all site-specific inputs and parameters. See “rSOILWAT2_demo” vignette.

Examples

utils::data(sw_exampleData)
path_demo <- system.file("extdata", "example1", package = "rSOILWAT2")
x <- sw_inputDataFromFiles(dir = path_demo, files.in = "files.in")
## expect differences in slots "timestamp" and possibly "version"
all.equal(x, sw_exampleData)

Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.