powered by
These are simple convenience wrapper functions to quickly query and assign values of attributes which are added to HYPE data on import.
datetime(x)datetime(x) <- valuehypeunit(x)hypeunit(x) <- valueobsid(x)obsid(x) <- valueoutregid(x)outregid(x) <- valuesubid(x)subid(x) <- valuetimestep(x)timestep(x) <- valuevariable(x)variable(x) <- value
datetime(x) <- value
hypeunit(x)
hypeunit(x) <- value
obsid(x)
obsid(x) <- value
outregid(x)
outregid(x) <- value
subid(x)
subid(x) <- value
timestep(x)
timestep(x) <- value
variable(x)
variable(x) <- value
The extractor functions return the value of the respective attribute or NULL if no matching attribute is found.
NULL
Object whose attribute is to be accessed
Value to be assigned
These functions are just shortcuts for attr.
attr
te <- ReadBasinOutput(filename = system.file("demo_model", "results", "0003587.txt", package = "HYPEtools")) hypeunit(te) timestep(te) subid(te)
Run the code above in your browser using DataLab