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)
as given by load_observed()$data
or read_swap_output()$custom_depth
(dataframe)
name(s) of the variables you would like to select, leave blank for all. (string)
value(s) of the depths you would like to select, leave blank for all. (numeric)
Returns a dataframe with a DATE
column, followed by the desired data.