list_matched_swrcs_ptfs: Matching pairs of implemented 'SWRCs' and 'PTFs'

View source: R/sw_Pedotransfer_Functions.R

list_matched_swrcs_ptfsR Documentation

Matching pairs of implemented SWRCs and PTFs

Description

Matching pairs of implemented SWRCs and PTFs

Usage

list_matched_swrcs_ptfs(swrc_name = names(swrc_names()))

Arguments

swrc_name

An character string or vector. The selected SWRC name (one of swrc_names(), with default "Campbell1974").

Value

A data.frame with two columns SWRC and PTF where each row contains a matching pair of SWRC and PTF that are implemented.

Examples

# Data frame of SWRC-PTF combinations
df_swrc_ptfs <- rSOILWAT2::list_matched_swrcs_ptfs()

# List of SWRC-PTF combinations
list_swrcs_ptfs <- unname(as.list(as.data.frame(t(df_swrc_ptfs))))

# Available SWRC-PTF combinations
has_ptf <- check_ptf_availability(df_swrc_ptfs[, "PTF"])
df_swrc_ptfs[has_ptf, , drop = FALSE]
list_swrcs_ptfs[has_ptf]


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