This is an internal function which filters dataframes of SWAP data by depth and variable. It might be useful for end users as well, which is why its accessible.

filter_swap_data(data, var = NULL, depth = NULL)

Arguments

data

as given by load_observed()$data or read_swap_output()$custom_depth (dataframe)

var

name(s) of the variables you would like to select, leave blank for all. (string)

depth

value(s) of the depths you would like to select, leave blank for all. (numeric)

Value

Returns a dataframe with a DATE column, followed by the desired data.