psi_replacement: Replacement methods

psi_replacementR Documentation

Replacement methods

Description

Methods for replacing the slots with new data or metadata

Usage

## S4 replacement method for signature 'psiData'
get_psi(object) <- value

## S4 replacement method for signature 'psiData'
get_psi_flags(object) <- value

## S4 replacement method for signature 'psiData'
get_timestamp(object) <- value

## S4 replacement method for signature 'psiData'
get_solar_timestamp(object) <- value

## S4 replacement method for signature 'psiData'
get_si_code(object) <- value

## S4 replacement method for signature 'psiData'
get_site_md(object) <- value

## S4 replacement method for signature 'psiData'
get_plant_md(object) <- value

Details

The replacement object must be a valid object for that slot, i.e. for psilow data slot a data frame with the same dimensions and without TIMESTAMP variable is needed. A validity check is done before returning the replaced psiData object and an error is returned if this check fails.

Value

The same psiData object with the corresponding slot changed to the value provided. An error if the value provided generates an invalid psiData object.


vflo/PSIsapfluxnetQC1 documentation built on Feb. 15, 2024, 3:19 a.m.