HypeAttrAccess: Quickly query and set HYPE-specific attributes

HypeAttrAccessR Documentation

Quickly query and set HYPE-specific attributes

Description

These are simple convenience wrapper functions to quickly query and assign values of attributes which are added to HYPE data on import.

Usage

datetime(x)

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

Arguments

x

Object whose attribute is to be accessed

value

Value to be assigned

Details

These functions are just shortcuts for attr.

Value

The extractor functions return the value of the respective attribute or NULL if no matching attribute is found.

Examples

te <- ReadBasinOutput(filename = system.file("demo_model", "results",
"0003587.txt", package = "HYPEtools"))
hypeunit(te)
timestep(te)
subid(te)


rcapell/HYPEtools documentation built on Feb. 28, 2024, 2:29 p.m.