Learn R Programming

hydroToolkit (version 0.1.0)

get_hydroMet: Get the slot(s) content(s)

Description

Extract the slots that you want from an hydroMet or hydroMet_XXX class.

Usage

get_hydroMet(obj, name = NA_character_)

# S4 method for hydroMet get_hydroMet(obj, name = NA_character_)

# S4 method for hydroMet_BDHI get_hydroMet(obj, name = NA_character_)

# S4 method for hydroMet_DGI get_hydroMet(obj, name = NA_character_)

# S4 method for hydroMet_IANIGLA get_hydroMet(obj, name = NA_character_)

# S4 method for hydroMet_CR2 get_hydroMet(obj, name = NA_character_)

# S4 method for hydroMet_compact get_hydroMet(obj, name = NA_character_)

Arguments

obj

an hydroMet or hydroMet_XXX class object.

name

a valid single string or vector string with the required slot name(s).

Value

A list with the slot's data.

Functions

  • get_hydroMet,hydroMet-method: get method for generic hydroMet object

  • get_hydroMet,hydroMet_BDHI-method: get method for BDHI class

  • get_hydroMet,hydroMet_DGI-method: get method for DGI class

  • get_hydroMet,hydroMet_IANIGLA-method: get method for IANIGLA class

  • get_hydroMet,hydroMet_CR2-method: get method for CR2 class

  • get_hydroMet,hydroMet_compact-method: get method for compact class

Examples

Run this code
# NOT RUN {
# Create an IANIGLA object
cuevas <- create_hydroMet(class_name = 'IANIGLA')

# Extract one of its slots
tair <- get_hydroMet(obj = cuevas, name = 'tair')

# }

Run the code above in your browser using DataLab