pluck_water: Pluck out a single parameter from a 'water' class object

pluck_waterR Documentation

Pluck out a single parameter from a water class object

Description

This function plucks one or more selected parameters from selected columns of water class objects. The names of the output columns will follow the form water_parameter

Usage

pluck_water(df, input_waters = c("defined_water"), parameter)

Arguments

df

a data frame containing a water class column, which has already been computed using define_water

input_waters

vector of names of the columns of water class data to be used as the input for this function.

parameter

vector of water class parameters to view outside the water column. Can also specify "all" to get all non-NA water slots.

Value

A data frame containing columns of selected parameters from a list of water class objects.

See Also

convert_water

Examples


pluck_example <- water_df %>%
  define_water_chain("raw") %>%
  pluck_water(input_waters = c("raw"), parameter = c("hco3", "doc"))


library(furrr)
# plan(multisession)
pluck_example <- water_df %>%
  define_water_chain() %>%
  pluck_water(parameter = c("ph", "alk"))

# Optional: explicitly close multisession processing
# plan(sequential)


tidywater documentation built on Aug. 8, 2025, 7:15 p.m.