swSoils_Layers: Interact with the soil layer data frame

swSoils_LayersR Documentation

Interact with the soil layer data frame

Description

Interact with the soil layer data frame

Usage

swSoils_Layers(object)

swSoils_Layers(object) <- value

## S4 method for signature 'swSoils'
swSoils_Layers(object)

## S4 replacement method for signature 'swSoils'
swSoils_Layers(object) <- value

## S4 method for signature 'swInputData'
swSoils_Layers(object)

## S4 replacement method for signature 'swInputData'
swSoils_Layers(object) <- value

Arguments

object

An object of class swSoils or swInputData.

value

An object that can be converted to a data matrix and represents required soil layer information.

Details

The replacement method ⁠swSoils_Layers<-⁠ for class swInputData resizes SWRCp to match number of new soil layers (and reset SWRCp values to NA) if "has_swrcp" is FALSE. This is to avoid inconsistency between soil properties and SWRCp.

The correct sequence for setting values is

  1. swSoils_Layers(),

  2. swSite_SWRCflags(), and

  3. swSoils_SWRCp() and swSite_hasSWRCp()


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.