hm_create: Creates an hydromet object.

Description Usage Arguments Value Examples

View source: R/03_hm_create.R

Description

This function is the constructor of hydromet class and its subclass.

Usage

1
hm_create(class_name = "station")

Arguments

class_name

string with the name of the class. Valid arguments are: hydromet, station or compact.

Value

An S4 object of class hydromet.

Examples

1
2
3
4
5
6
7
8
# create class 'hydromet'
hym_metadata <- hm_create(class_name = 'hydromet')

# subclass 'station'
hym_station <- hm_create(class_name = 'station')

# subclass 'compact'
hym_compact <- hm_create(class_name = 'compact')

hydrotoolbox documentation built on July 9, 2021, 1:06 a.m.