Learn R Programming

HYPEtools (version 1.6.4)

HypeAttrAccess: 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

Value

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

Arguments

x

Object whose attribute is to be accessed

value

Value to be assigned

Details

These functions are just shortcuts for attr.

Examples

Run this code
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